From 9ce42645e7568a08e31ea1b2eab4edef0487828c Mon Sep 17 00:00:00 2001 From: Gerardo Exequiel Pozzi Date: Sun, 4 Jul 2010 17:16:35 -0300 Subject: umount tmpfs on shutdown if devtmpfs is used This fixes FS#19783. [tomegun: some adjustments: - always umount ramfs as we never mount /dev as ramfs; and - don't umount /dev/pts as it might still be useful.] Signed-off-by: Gerardo Exequiel Pozzi Signed-off-by: Tom Gundersen --- rc.shutdown | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'rc.shutdown') diff --git a/rc.shutdown b/rc.shutdown index 106c3df..f847ddf 100755 --- a/rc.shutdown +++ b/rc.shutdown @@ -54,7 +54,11 @@ if [[ $USELVM =~ yes|YES && -x /sbin/lvm && -d /sys/block ]]; then fi stat_busy "Unmounting Filesystems" -/bin/umount -a -r -t noramfs,notmpfs,nosysfs,noproc,nodevtmpfs -O no_netdev +if grep -q devtmpfs /proc/filesystems 2>/dev/null; then + /bin/umount -a -r -t nosysfs,noproc,nodevtmpfs,nodevpts -O no_netdev +else + /bin/umount -a -r -t notmpfs,nosysfs,noproc,nodevpts -O no_netdev +fi stat_done # Kill non-root encrypted partition mappings -- cgit v1.2.3