diff options
| author | 2025-03-19 10:48:55 -0400 | |
|---|---|---|
| committer | 2025-03-19 10:48:55 -0400 | |
| commit | efc71e6d8629f0e3b5bd2541650266d632a2fe68 (patch) | |
| tree | 6ba6f6ffb9c494ed205defa3ea8357484b381530 /kiwi-build | |
| parent | 364b0b8f628d567cd7c063c75470569749e89302 (diff) | |
| download | kiwi-descriptions-efc71e6d8629f0e3b5bd2541650266d632a2fe68.tar.gz kiwi-descriptions-efc71e6d8629f0e3b5bd2541650266d632a2fe68.zip | |
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.
Diffstat (limited to 'kiwi-build')
| -rwxr-xr-x | kiwi-build | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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 |