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
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
|
# Capture arguments after --
|
||||||
|
kiwibuild_extra_args=("$@")
|
||||||
|
|
||||||
if [ -z "$output_dir" ] || [ -z "$image_type" ] || [ -z "$image_profile" ] || [ -z "$kiwi_file" ]; then
|
if [ -z "$output_dir" ] || [ -z "$image_type" ] || [ -z "$image_profile" ] || [ -z "$kiwi_file" ]; then
|
||||||
echo "Options not set!"
|
echo "Options not set!"
|
||||||
usage
|
usage
|
||||||
@@ -56,7 +59,8 @@ kiwi_bundle_format=$("${kiwibuild_scriptdir}/scripts/fedora-kiwi-bundle-format-g
|
|||||||
|
|
||||||
if [ "$image_type" = "iso" ]; then
|
if [ "$image_type" = "iso" ]; then
|
||||||
# Add parameters for embedded ISO IDs
|
# 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
|
fi
|
||||||
|
|
||||||
if [ "$image_type" = "oci" ]; then
|
if [ "$image_type" = "oci" ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user