Reboot hangs because /etc/rc6.d/S40umountfs chokes on non-existent mounts
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
autofs5 (Ubuntu) |
Won't Fix
|
High
|
Canonical Server |
Bug Description
All our machnes were hanging indefinitely when asked to reboot. We traced it down to the /etc/rc6.
The expected behaviour for the umountfs script would be to skip over any bogus mount points, left over by autofs or anything else.
For instance, we found out that by the time /etc/rc6.
/etc/auto.nfs_h /h autofs rw,relatime,
/etc/auto.nfs_s /s autofs rw,relatime,
/etc/auto.nfs_cdf /cdf autofs rw,relatime,
which confused the umountfs script. The variable REG_MTPTS, among the proper file systems, contained the following: "/h /s /cdf". Subsequently, when the umountfs script invoked "fstab-decode umount ..." it hung trying to unmount these non-existent file systems.
In summary, I think that either the umountfs script should be made smarter to not pass bogus mount points to fstab-decode, or fstab-decode should be more robust and not hang when given a mount point that does not exist. Perhaps both.
Thanks!
ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: initscripts 2.88dsf-
ProcVersionSign
Uname: Linux 3.2.0-23-
ApportVersion: 2.0.1-0ubuntu6
Architecture: i386
Date: Wed Apr 25 11:33:07 2012
ProcEnviron:
TERM=xterm
PATH=(custom, no user)
SHELL=
SourcePackage: sysvinit
UpgradeStatus: No upgrade log present (probably fresh install)
description: | updated |
Changed in sysvinit (Ubuntu): | |
assignee: | nobody → Canonical Foundations Team (canonical-foundations) |
Changed in autofs5 (Ubuntu): | |
status: | Confirmed → Won't Fix |
I modified the umountfs script to run fstab-decode under strace. I'm attaching the strace output.