initscripts: Make umountfs a bit more robust, bump PR
authorTom Rini <tom_rini@mentor.com>
Tue, 23 Feb 2010 18:56:46 +0000 (11:56 -0700)
committerTom Rini <tom_rini@mentor.com>
Tue, 23 Feb 2010 18:56:46 +0000 (11:56 -0700)
recipes/initscripts/files/umountfs
recipes/initscripts/initscripts_1.0.bb

index ec75b0c..79bb48f 100644 (file)
@@ -10,9 +10,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
index 1bd6706..2c0689f 100644 (file)
@@ -4,7 +4,7 @@ PRIORITY = "required"
 DEPENDS = "makedevs"
 RDEPENDS = "makedevs"
 LICENSE = "GPL"
-PR = "r116"
+PR = "r117"
 
 SRC_URI = "file://functions \
            file://halt \