rootfs-block/mount-root.sh: only warn if fsck returned != 0
authorHarald Hoyer <harald@redhat.com>
Wed, 10 Nov 2010 19:06:34 +0000 (20:06 +0100)
committerHarald Hoyer <harald@redhat.com>
Wed, 10 Nov 2010 19:06:34 +0000 (20:06 +0100)
modules.d/95rootfs-block/mount-root.sh

index 476fa85..00cf475 100755 (executable)
@@ -127,7 +127,7 @@ if [ -n "$root" -a -z "${root%%block:*}" ]; then
             emergency_shell "(Repair filesystem)"
         else
             echo $out|vinfo
-            warn "fsck returned with $RD_ROOTFS_FSCK"
+            [ $RD_ROOTFS_FSCK -gt 0 ] && warn "fsck returned with $RD_ROOTFS_FSCK"
         fi
     fi