diff options
author | jpaetzel <jpaetzel@FreeBSD.org> | 2013-03-03 23:07:27 +0000 |
---|---|---|
committer | jpaetzel <jpaetzel@FreeBSD.org> | 2013-03-03 23:07:27 +0000 |
commit | 2b4e636b244795c1b6f7fd8c71009d903a03fd40 (patch) | |
tree | 59901987c797e6ee4d9977801f300e91dde67dc1 /usr.sbin/pc-sysinstall/backend/functions-bsdlabel.sh | |
parent | 3da475a963077e2df4022d88c2fba553595f4e9b (diff) | |
download | FreeBSD-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/backend/functions-bsdlabel.sh')
-rwxr-xr-x | usr.sbin/pc-sysinstall/backend/functions-bsdlabel.sh | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/usr.sbin/pc-sysinstall/backend/functions-bsdlabel.sh b/usr.sbin/pc-sysinstall/backend/functions-bsdlabel.sh index 0eedfad..37353d7 100755 --- a/usr.sbin/pc-sysinstall/backend/functions-bsdlabel.sh +++ b/usr.sbin/pc-sysinstall/backend/functions-bsdlabel.sh @@ -62,7 +62,18 @@ get_fs_line_xvars() echo $ZFSVARS | grep -qE "^(disk|file|mirror|raidz(1|2|3)?|spare|log|cache):" 2>/dev/null if [ $? -eq 0 ] ; then ZTYPE=`echo $ZFSVARS | cut -f1 -d:` - ZFSVARS=`echo $ZFSVARS | sed "s|$ZTYPE: ||g" | sed "s|$ZTYPE:||g"` + tmpVars=`echo $ZFSVARS | sed "s|$ZTYPE: ||g" | sed "s|$ZTYPE:||g"` + ZFSVARS="" + # make sure we have a '/dev' in front of the extra devices + for i in $tmpVars + do + echo $i | grep -q '/dev/' + if [ $? -ne 0 ] ; then + ZFSVARS="$ZFSVARS /dev/${i}" + else + ZFSVARS="$ZFSVARS $i" + fi + done fi # Return the ZFS options |