mirror of
https://github.com/flatcar/scripts.git
synced 2025-11-29 06:21:46 +01:00
sysext_prod_builder: Add suggestions from PR review
Co-authored-by: Krzesimir Nowak <knowak@microsoft.com> Signed-off-by: Thilo Fromm <thilofromm@microsoft.com>
This commit is contained in:
parent
47a74ba059
commit
456b3687ed
@ -35,9 +35,9 @@ create_prod_sysext() {
|
|||||||
|
|
||||||
local -a build_sysext_opts=()
|
local -a build_sysext_opts=()
|
||||||
|
|
||||||
local grp_pkg="${grp_pkgs//&/ }"
|
local -a grp_pkg
|
||||||
|
mapfile -t grp_pkg <<<"${grp_pkgs//&/$'\n'}"
|
||||||
local msg="Installing ${grp_pkg} in sysext ${name}.raw"
|
local msg="Installing ${grp_pkg[*]} in sysext ${name}.raw"
|
||||||
|
|
||||||
# Include previous sysexts' pkginfo if supplied
|
# Include previous sysexts' pkginfo if supplied
|
||||||
if [[ -n "${pkginfo}" ]] ; then
|
if [[ -n "${pkginfo}" ]] ; then
|
||||||
@ -62,7 +62,7 @@ create_prod_sysext() {
|
|||||||
--squashfs_base="${base_sysext}" \
|
--squashfs_base="${base_sysext}" \
|
||||||
--generate_pkginfo \
|
--generate_pkginfo \
|
||||||
"${build_sysext_opts[@]}" \
|
"${build_sysext_opts[@]}" \
|
||||||
"${name}" ${grp_pkg}
|
"${name}" "${grp_pkg[@]}"
|
||||||
|
|
||||||
sudo mv "${workdir}/sysext-build/${name}.raw" "${workdir}/sysext-build/${name}_pkginfo.raw" \
|
sudo mv "${workdir}/sysext-build/${name}.raw" "${workdir}/sysext-build/${name}_pkginfo.raw" \
|
||||||
"${workdir}/sysext-build/${name}"_*.txt "${output_dir}"
|
"${workdir}/sysext-build/${name}"_*.txt "${output_dir}"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user