mirror of
https://github.com/freebsd/freebsd-src.git
synced 2026-10-28 11:25:21 +01:00
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:
1 parent
fb5c987176
commit
33510b16e6
1 file changed
+4
@@ -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
|
||||
|
||||
Reference in new issue
Block a user