Public bug reported:

Binary package hint: update-manager

The dist ugprader tarball includes the following:

        if replaced:
            logging.debug("writing new /etc/fstab")
            open("/etc/fstab.intrepid","w").write("\n".join(lines))
            os.rename("/etc/fstab.intrepid","/etc/fstab")

This will write a new copy of /etc/fstab _WITHOUT_ the final newline (it
only puts newlines between the existant lines).

Removing the final newline means that the shell code in several places
that tries to parse /etc/fstab will fail, in particular this will mean:

 - if the last entry is a swap partition, it will not be activated
 - if the last entry is an ordinary partition, it will not be checked (and may 
not be mounted!)
 - if the last entry is an NFS mount, it will not be mounted

While you could argue those are bugs in themselves, it would be nice if
the dist-upgrader didn't cause them :p

** Affects: update-manager (Ubuntu)
     Importance: Critical
     Assignee: Michael Vogt (mvo)
         Status: New

** Affects: update-manager (Ubuntu Intrepid)
     Importance: Critical
     Assignee: Michael Vogt (mvo)
         Status: New

** Changed in: update-manager (Ubuntu Intrepid)
   Importance: Undecided => Critical
     Assignee: (unassigned) => Michael Vogt (mvo)
       Target: None => ubuntu-8.10

-- 
Removes trailing newline from /etc/fstab
https://bugs.launchpad.net/bugs/279093
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to