From: Harald Hoyer Date: Wed, 10 Nov 2010 19:45:12 +0000 (+0100) Subject: rootfs-block/mount-root.sh: remove $NEWROOT/{.autofsck,forcefsck} if possible X-Git-Tag: 008~43 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d884af80775e6a3299e65930235b64135e9d4220;p=thirdparty%2Fdracut.git rootfs-block/mount-root.sh: remove $NEWROOT/{.autofsck,forcefsck} if possible --- diff --git a/modules.d/95rootfs-block/mount-root.sh b/modules.d/95rootfs-block/mount-root.sh index baa1ce570..93c5c4259 100755 --- a/modules.d/95rootfs-block/mount-root.sh +++ b/modules.d/95rootfs-block/mount-root.sh @@ -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