Ignore errors from fstype.
authorMichael Prokop <mika@grml.org>
Mon, 15 Sep 2008 15:54:18 +0000 (17:54 +0200)
committerMarco Amadori <amadorim@vdavda.com>
Tue, 16 Sep 2008 08:26:12 +0000 (10:26 +0200)
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