testing: make run.sh aware of generate-zbm changes

This commit is contained in:
Zach Dykstra 2022-11-16 10:14:47 -06:00
parent 4fcf66c4d6
commit 667e61aef4
No known key found for this signature in database
GPG Key ID: F2F0D4FB7A2861E8
1 changed files with 8 additions and 0 deletions

View File

@ -358,6 +358,14 @@ if ((CREATE)) ; then
yq-go eval ".Components.Enabled = true" -i "${yamlconf}"
fi
if ((DRACUT)) ; then
GENZBM_FLAGS+=( "--no-initcpio" )
elif ((INITCPIO)) ; then
GENZBM_FLAGS+=( "--initcpio" )
else
GENZBM_FLAGS+=( "--initcpio" )
fi
# Try to find the local dracut and generate-zbm first
if ! ( cd "${TESTDIR}" && PATH=./dracut:${PATH} ./generate-zbm -c ./local.yaml "${GENZBM_FLAGS[@]}" ); then
error "unable to create ZFSBootMenu images"