Ignore errors from fstype.
authorMichael Prokop <mika@grml.org>
Mon, 15 Sep 2008 15:54:18 +0000 (17:54 +0200)
committerDaniel Baumann <daniel@debian.org>
Wed, 9 Mar 2011 16:48:02 +0000 (17:48 +0100)
Redirect stderr to /dev/null, otherwise we'll get
"stdin: error 0" for some partitions during bootup.

scripts/live-helpers

index bb5653c..990c088 100644 (file)
@@ -77,7 +77,7 @@ get_fstype ()
            return
        fi
 
-       eval $(fstype < ${1})
+       eval $(fstype < ${1} 2>/dev/null)
 
        if [ "${FSTYPE}" != "unknown" ]
        then