]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
Fix syntax error thrown at the point of creating the root pool, caused by
authorroberto <roberto@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 4 Jun 2014 15:31:57 +0000 (15:31 +0000)
committerroberto <roberto@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 4 Jun 2014 15:31:57 +0000 (15:31 +0000)
commit92f9737492c1d412341e7d2da85b59a190f6af35
tree67a02162b2961e6bbe30107fa90a1421c5d53bdd
parent9005043d3a58b9812e07117ed4e27d908461bf60
Fix syntax error thrown at the point of creating the root pool, caused by
an embedded newline appearing within the options string surrounded by
double-quotes. Rework the logic that goes into setting dataset options on
the root pool dataset while we're here -- added two new variables (which
can be altered via scripting) ZFSBOOT_POOL_CREATE_OPTIONS and also
ZFSBOOT_BOOT_POOL_CREATE_OPTIONS for setting pool/dataset attributes at
the time of pool creation. The former is for setting options on the root
pool (zroot) and the latter is for setting options on the optional separate
boot pool (bootpool) implicitly enabled when using either GELI or MBR. The
default value for the root pool variable (ZFSBOOT_POOL_CREATE_OPTIONS) is
"-O compress=lz4 -O atime=off" and the default value for separate boot pool
variable (ZFSBOOT_BOOT_POOL_CREATE_OPTIONS) is NULL (no additional options
for the separate boot pool dataset).

Reviewed by: allanjude

git-svn-id: svn://svn.freebsd.org/base/stable/10@267061 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
usr.sbin/bsdinstall/scripts/zfsboot