From ed05266834d55ae1c45b19cf25d700c85c6153b2 Mon Sep 17 00:00:00 2001 From: imp Date: Sat, 31 Jul 2010 19:25:51 +0000 Subject: Adds the async option for journaled file systems (UFS + journaling) Submitted by: kris moore (kris at pcbsd org) --- usr.sbin/pc-sysinstall/backend/functions-cleanup.sh | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'usr.sbin/pc-sysinstall') diff --git a/usr.sbin/pc-sysinstall/backend/functions-cleanup.sh b/usr.sbin/pc-sysinstall/backend/functions-cleanup.sh index 0a79736..f7eedf5 100755 --- a/usr.sbin/pc-sysinstall/backend/functions-cleanup.sh +++ b/usr.sbin/pc-sysinstall/backend/functions-cleanup.sh @@ -163,6 +163,14 @@ setup_fstab() # 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 @@ setup_fstab() # 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 -- cgit v1.1