rootfs-block/mount-root.sh: remove $NEWROOT/{.autofsck,forcefsck} if possible
authorHarald Hoyer <harald@redhat.com>
Wed, 10 Nov 2010 19:45:12 +0000 (20:45 +0100)
committerHarald Hoyer <harald@redhat.com>
Wed, 10 Nov 2010 19:47:15 +0000 (20:47 +0100)
modules.d/95rootfs-block/mount-root.sh

index baa1ce5..93c5c42 100755 (executable)
@@ -137,4 +137,6 @@ if [ -n "$root" -a -z "${root%%block:*}" ]; then
     info "Remounting ${root#block:} with -o ${rflags},${rootopts}"
     mount -t "$rootfs" -o "$rflags","$rootopts" \
         "${root#block:}" "$NEWROOT" 2>&1 | vinfo
+
+    [ -f "$NEWROOT"/forcefsck ] && rm -f "$NEWROOT"/forcefsck 2>/dev/null
 fi