Autofs does not clean up /proc/mounts when stopped
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
autofs5 (Ubuntu) |
Confirmed
|
Medium
|
Unassigned |
Bug Description
After the autofs service is stopped, the autofs-related stuff still persists in /proc/mounts. I think that the expected behaviour would be for the /proc/mounts entries to be removed after the autofs daemon stops.
As a workaround I found that unloading the autofs kernel module with "modprobe -r autofs4" results in /proc/mounts to be cleaned up of the autofs stuff.
The consequence of this problem is that the system would not reboot because the phantom /proc/mounts entries that autofs leaves behind confuse the /etc/rc6.
In our case, after autofs is stopped and all directories that it mounted are unmounted, /proc/mounts still contains the following entries:
/etc/auto.nfs_h /h autofs rw,relatime,
/etc/auto.nfs_s /s autofs rw,relatime,
/etc/auto.nfs_cdf /cdf autofs rw,relatime,
Thanks!
ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: autofs5 5.0.6-0ubuntu5
ProcVersionSign
Uname: Linux 3.2.0-23-
ApportVersion: 2.0.1-0ubuntu6
Architecture: i386
Date: Wed Apr 25 11:31:38 2012
ProcEnviron:
TERM=xterm
PATH=(custom, no user)
SHELL=
SourcePackage: autofs5
UpgradeStatus: No upgrade log present (probably fresh install)
Changed in autofs5 (Ubuntu): | |
importance: | Undecided → Medium |
I've done some more experimenting, and it appears that stopping autofs (using "stop autofs") while in multiuser removes autofs-related lines from /proc/mounts. However, when /etc/rc6. d/S40umountfs in run level 6 is running I've verified that /proc/mounts still contains autofs-related entries.