summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pc-sysinstall/conf
diff options
context:
space:
mode:
authorjpaetzel <jpaetzel@FreeBSD.org>2013-03-03 23:07:27 +0000
committerjpaetzel <jpaetzel@FreeBSD.org>2013-03-03 23:07:27 +0000
commit2b4e636b244795c1b6f7fd8c71009d903a03fd40 (patch)
tree59901987c797e6ee4d9977801f300e91dde67dc1 /usr.sbin/pc-sysinstall/conf
parent3da475a963077e2df4022d88c2fba553595f4e9b (diff)
downloadFreeBSD-src-2b4e636b244795c1b6f7fd8c71009d903a03fd40.zip
FreeBSD-src-2b4e636b244795c1b6f7fd8c71009d903a03fd40.tar.gz
Use GNOP to force ZFS pools to 4k.
Obtained from: PC-BSD
Diffstat (limited to 'usr.sbin/pc-sysinstall/conf')
-rw-r--r--usr.sbin/pc-sysinstall/conf/pc-sysinstall.conf8
1 files changed, 3 insertions, 5 deletions
diff --git a/usr.sbin/pc-sysinstall/conf/pc-sysinstall.conf b/usr.sbin/pc-sysinstall/conf/pc-sysinstall.conf
index 5d682dc..9c01e31 100644
--- a/usr.sbin/pc-sysinstall/conf/pc-sysinstall.conf
+++ b/usr.sbin/pc-sysinstall/conf/pc-sysinstall.conf
@@ -5,11 +5,9 @@
TMPDIR="/tmp/.pc-sysinstall"
export TMPDIR
-if [ ! -d "${TMPDIR}" ]
-then
- mkdir -p ${TMPDIR}
- chmod 777 ${TMPDIR}
-fi
+# Create a fresh TMPDIR
+if [ -d "${TMPDIR}" -a "$TMPDIR" != '/' ]; then rm -rf ${TMPDIR}; fi
+mkdir -p ${TMPDIR}
# Set our temp directory for storing partition information
PARTDIR="${TMPDIR}/part-info"
OpenPOWER on IntegriCloud