tests: Workaround for mkksiso options coming from newer lorax RPM

This commit is contained in:
Alexander Todorov 2022-08-02 11:42:54 +03:00 committed by Jakub Rusz
parent 1ab3138afe
commit a14b76ef61
2 changed files with 12 additions and 2 deletions

View file

@ -6,6 +6,7 @@ set -euo pipefail
# Get OS data.
source /usr/libexec/osbuild-composer-test/set-env-variables.sh
source /usr/libexec/tests/osbuild-composer/shared_lib.sh
# Colorful output.
function greenprint {
@ -194,7 +195,11 @@ ostree remote add --no-gpg-verify --no-sign-verify ${OSTREE_OSNAME} ${PROD_REPO_
EOFKS
echo "Writing new ISO"
sudo mkksiso -c "console=ttyS0,115200" "${newksfile}" "${iso}" "${newiso}"
if nvrGreaterOrEqual "lorax" "34.9.18"; then
sudo mkksiso -c "console=ttyS0,115200" --ks "${newksfile}" "${iso}" "${newiso}"
else
sudo mkksiso -c "console=ttyS0,115200" "${newksfile}" "${iso}" "${newiso}"
fi
echo "==== NEW KICKSTART FILE ===="
cat "${newksfile}"