testing: make run.sh aware of generate-zbm changes
This commit is contained in:
parent
4fcf66c4d6
commit
667e61aef4
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue