[PC-BSD Commits] r6384 - pcbsd/trunk/pc-sysinstall/backend

svn at pcbsd.org svn at pcbsd.org
Tue Mar 9 15:39:50 PST 2010


Author: kris
Date: 2010-03-09 15:39:50 -0800 (Tue, 09 Mar 2010)
New Revision: 6384

Modified:
   pcbsd/trunk/pc-sysinstall/backend/functions-cleanup.sh
Log:

Hide error if loader.conf isn't present when checking for settings



Modified: pcbsd/trunk/pc-sysinstall/backend/functions-cleanup.sh
===================================================================
--- pcbsd/trunk/pc-sysinstall/backend/functions-cleanup.sh	2010-03-09 23:36:49 UTC (rev 6383)
+++ pcbsd/trunk/pc-sysinstall/backend/functions-cleanup.sh	2010-03-09 23:39:50 UTC (rev 6384)
@@ -21,7 +21,7 @@
         then
           # Make sure we haven't already added the zfs boot line when
           # Creating a dedicated "/boot" partition
-          cat ${FSMNT}/boot/loader.conf | grep "vfs.root.mountfrom=" >/dev/null 2>/dev/null
+          cat ${FSMNT}/boot/loader.conf 2>/dev/null | grep "vfs.root.mountfrom=" >/dev/null 2>/dev/null
           if [ "$?" != "0" ] ; then
             echo "vfs.root.mountfrom=\"zfs:${ZPOOLNAME}\"" >> ${FSMNT}/boot/loader.conf
           fi



More information about the Commits mailing list