kiwi-build: Pass on arguments after "--" to kiwi
This simplifies supporting one-off custom actions without having to define options in the helper script all the time.
This commit is contained in:
+5
-1
@@ -46,6 +46,9 @@ while true; do
|
||||
esac
|
||||
done
|
||||
|
||||
# Capture arguments after --
|
||||
kiwibuild_extra_args=("$@")
|
||||
|
||||
if [ -z "$output_dir" ] || [ -z "$image_type" ] || [ -z "$image_profile" ] || [ -z "$kiwi_file" ]; then
|
||||
echo "Options not set!"
|
||||
usage
|
||||
@@ -56,7 +59,8 @@ kiwi_bundle_format=$("${kiwibuild_scriptdir}/scripts/fedora-kiwi-bundle-format-g
|
||||
|
||||
if [ "$image_type" = "iso" ]; then
|
||||
# Add parameters for embedded ISO IDs
|
||||
kiwibuild_extra_args=$("${kiwibuild_scriptdir}/scripts/fedora-live-iso-label-generator" "${kiwi_file}" "${image_profile}" --output-kiwi-args)
|
||||
kiwibuild_iso_extra_args=$("${kiwibuild_scriptdir}/scripts/fedora-live-iso-label-generator" "${kiwi_file}" "${image_profile}" --output-kiwi-args)
|
||||
kiwibuild_extra_args="${kiwibuild_extra_args:+${kiwibuild_extra_args}} ${kiwibuild_iso_extra_args}"
|
||||
fi
|
||||
|
||||
if [ "$image_type" = "oci" ]; then
|
||||
|
||||
Reference in New Issue
Block a user