From 759aece59fed3268673cd066ceea949eb5e41005 Mon Sep 17 00:00:00 2001 From: Gerardo Exequiel Pozzi Date: Sun, 4 Jul 2010 17:16:35 -0300 Subject: [PATCH] Umount tmpfs and ramfs on shutdown if devtmpfs is used. Signed-off-by: Gerardo Exequiel Pozzi --- rc.shutdown | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/rc.shutdown b/rc.shutdown index 4eb29cc..959574a 100755 --- a/rc.shutdown +++ b/rc.shutdown @@ -99,7 +99,11 @@ stat_busy "Deactivating Swap" stat_done 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 -O no_netdev +else + /bin/umount -a -r -t noramfs,notmpfs,nosysfs,noproc -O no_netdev +fi stat_done # Kill non-root encrypted partition mappings -- 1.7.1.1