diff options
Diffstat (limited to 'meta/recipes-core/initscripts/initscripts-1.0/umountfs')
-rwxr-xr-x | meta/recipes-core/initscripts/initscripts-1.0/umountfs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/meta/recipes-core/initscripts/initscripts-1.0/umountfs b/meta/recipes-core/initscripts/initscripts-1.0/umountfs index 5c6793dc9c..6ad0e43119 100755 --- a/meta/recipes-core/initscripts/initscripts-1.0/umountfs +++ b/meta/recipes-core/initscripts/initscripts-1.0/umountfs | |||
@@ -16,9 +16,9 @@ swapoff -a | |||
16 | 16 | ||
17 | # We leave /proc mounted. | 17 | # We leave /proc mounted. |
18 | echo "Unmounting local filesystems..." | 18 | echo "Unmounting local filesystems..." |
19 | mount -o remount,ro /mnt/ram | 19 | grep -q /mnt/ram /proc/mounts && mount -o remount,ro /mnt/ram |
20 | umount -f -a -r | ||
21 | |||
22 | mount -o remount,ro / | 20 | mount -o remount,ro / |
23 | 21 | ||
22 | umount -f -a -r > /dev/null 2>&1 | ||
23 | |||
24 | : exit 0 | 24 | : exit 0 |