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 # We leave /proc mounted. echo "Unmounting local filesystems..." -mount -o remount,ro /mnt/ram -umount -f -a -r - +grep -q /mnt/ram /proc/mounts && mount -o remount,ro /mnt/ram mount -o remount,ro / +umount -f -a -r > /dev/null 2>&1 + : exit 0 |