nextboot(8): Fix behavior on non-ZFS /boot systems

Fix unquoted test for an empty value, which broke nextboot(8) on non-ZFS /boot
systems after r365938.

Discussed with:	allanjude, tsoome
X-MFC-With:	r365938
This commit is contained in:
Conrad Meyer 2020-09-23 17:04:27 +00:00
parent 64d33e9e60
commit eb7e125e58
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=366078

View file

@ -116,7 +116,7 @@ set -e
nextboot_tmp=$(mktemp $(dirname ${nextboot_file})/nextboot.XXXXXX)
if [ -n ${zfs} ]; then
if [ -n "${zfs}" ]; then
zfsbootcfg -z ${zfs} -n freebsd:nvstore -k nextboot_enable -v YES
cat >> ${nextboot_tmp} << EOF
$kenv