nextboot: Reimplement missing -a option

PR:		260520
MFC after:	3 days
Fixes:		e307eb94ae ("loader: zfs should support bootonce an nextboot")
This commit is contained in:
Dag-Erling Smørgrav committed 2025-12-13 22:54:14 +00:00
1 parent fb5c987176
commit 33510b16e6
1 file changed
+4
+4
View File
@@ -115,6 +115,10 @@ set -e
nextboot_tmp=$(mktemp $(dirname ${nextboot_file})/nextboot.XXXXXX)
if [ ${append} = "YES" -a -f ${nextboot_file} ]; then
cp -f ${nextboot_file} ${nextboot_tmp}
fi
if [ -n "${zfs}" ]; then
zfsbootcfg -z ${zfs} -n freebsd:nvstore -k nextboot_enable -v YES
cat >> ${nextboot_tmp} << EOF