[PC-BSD Commits] r7193 - pcbsd/current/pc-sysinstall/backend

svn at pcbsd.org svn at pcbsd.org
Tue Jul 13 07:39:53 PDT 2010


Author: kris
Date: 2010-07-13 07:39:53 -0700 (Tue, 13 Jul 2010)
New Revision: 7193

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

Added fix for generated etc/fstab to use "async" option on gjournal partitions automatically



Modified: pcbsd/current/pc-sysinstall/backend/functions-cleanup.sh
===================================================================
--- pcbsd/current/pc-sysinstall/backend/functions-cleanup.sh	2010-07-13 14:38:36 UTC (rev 7192)
+++ pcbsd/current/pc-sysinstall/backend/functions-cleanup.sh	2010-07-13 14:39:53 UTC (rev 7193)
@@ -163,6 +163,14 @@
     # Unset EXT
     EXT=""
 
+    # Set mount options for file-systems
+    case $PARTFS in
+      UFS+J) MNTOPTS="rw,noatime,async" ;;
+       SWAP) MNTOPTS="sw" ;;
+          *) MNTOPTS="rw,noatime" ;;
+    esac
+
+
     # Figure out if we are using a glabel, or the raw name for this entry
     if [ ! -z "${PARTLABEL}" ]
     then
@@ -212,9 +220,9 @@
       # Echo out the fstab entry now
       if [ "${PARTFS}" = "SWAP" ]
       then
-        echo "/dev/${DEVICE}	none			swap		sw		0	0" >> ${FSTAB}
+        echo "/dev/${DEVICE}	none			swap		${MNTOPTS}		0	0" >> ${FSTAB}
       else
-        echo "/dev/${DEVICE}  	${PARTMNT}			ufs		rw,noatime	1	1" >> ${FSTAB}
+        echo "/dev/${DEVICE}  	${PARTMNT}			ufs		${MNTOPTS}	1	1" >> ${FSTAB}
       fi
 
     fi # End of ZFS Check



More information about the Commits mailing list