[Bug 1059471] Re: 2.41 fails to mount root partition
Launchpad Bug Tracker
1059471 at bugs.launchpad.net
Mon Nov 26 18:20:22 UTC 2012
This bug was fixed in the package mountall - 2.42ubuntu0.1
---------------
mountall (2.42ubuntu0.1) quantal-proposed; urgency=low
* Fix a regression introduced in 2.41: parse_mountinfo() doesn't
generate a mounted event for a filesystem whose canonicalized
mountpoint doesn't match the mountpoint specified in /etc/fstab. So
we still need to call mounted() explicitly for this case. LP: #1059471.
-- Steve Langasek <steve.langasek at ubuntu.com> Wed, 07 Nov 2012 20:58:39 -0800
** Changed in: mountall (Ubuntu Quantal)
Status: Fix Committed => Fix Released
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to mountall in Ubuntu.
https://bugs.launchpad.net/bugs/1059471
Title:
2.41 fails to mount root partition
Status in “mountall” package in Ubuntu:
Fix Released
Status in “mountall” source package in Quantal:
Fix Released
Bug description:
[Impact]
A change introduced in mountall in quantal can cause boot-time hangs for some users when a filesystem is listed in /etc/fstab with a non-canonicalized mount point. This is a regression vs. previous releases.
[Test case]
1. Create a directory, /mnt/realmount
2. Make /mnt/linkmount a symlink to /mnt/realmount
3. Add the following entry to /etc/fstab, immediately after the root filesystem:
overlay /mnt/linkmount tmpfs defaults 0 0
(order here matters because this is a virtual filesystem, and mountall creates implicit dependencies for virtual filesystems based on /etc/fstab ordering)
4. Install plymouth to the initramfs by running: 'echo FRAMEBUFFER=yes > /etc/initramfs-tools/conf.d/lp1059471; update-initramfs -u'. (Otherwise, the boot will hang before plymouth splash has started.)
5. Reboot. Confirm that the system hangs on boot with a message about /mnt/linkmount not being mounted.
6. Press 'S' to skip this filesystem and finish booting.
7. Install mountall 2.42 from proposed.
8. Reboot. Confirm that the system boots all the way up without hanging.
9. Clean up by running 'rm -f /etc/initramfs-tools/conf.d/lp1059471; update-initramfs -u'.
[Regression potential]
The mountall code is very complicated, with little test coverage and no integration testing. I believe the code is now correct, but the risk of a regression in an unrelated boot configuration is non-negligible.
When booting with 2.41, I get a message
"The disk drive for / is not ready yet or not present"
but when I drop into a shell for manual recovery, / curiously /is/
mounted.
Downgrading mountall to 2.40 allows me to boot again.
Let me know if you need any more information.
ProblemType: Bug
DistroRelease: Ubuntu 12.10
Package: mountall 2.40
ProcVersionSignature: Ubuntu 3.5.0-16.25-generic 3.5.4
Uname: Linux 3.5.0-16-generic x86_64
ApportVersion: 2.5.3-0ubuntu1
Architecture: amd64
Date: Mon Oct 1 10:33:29 2012
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Release amd64 (20120425)
SourcePackage: mountall
UpgradeStatus: No upgrade log present (probably fresh install)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/mountall/+bug/1059471/+subscriptions
More information about the foundations-bugs
mailing list