From ee8503d0c333760c5a5caa6da34727f6c84ad634 Mon Sep 17 00:00:00 2001 From: Tobias Jungel <1773291+toanju@users.noreply.github.com> Date: Mon, 13 Jul 2026 15:38:58 +0200 Subject: [PATCH] Improve sci exec.config * cloud hypervisor had debug symbols, hence generally remove them from the package list to avoid installing them * improve quoting in create function --- features/sci/exec.config | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/features/sci/exec.config b/features/sci/exec.config index a0cbf438..c5bae1f5 100755 --- a/features/sci/exec.config +++ b/features/sci/exec.config @@ -1,4 +1,5 @@ #!/usr/bin/env bash + set -Eeuo pipefail # Undo the gardener feature disablement @@ -19,6 +20,8 @@ for p in https://github.com/gardenlinux/package-edk2-cloud-hypervisor-gl/release done pushd /tmp/custompackages > /dev/null +rm -f -- *dbgsym* *arm64* || true +ls -1 dpkg -i cloud-hypervisor-gl*_amd64.deb edk2-cloud-hypervisor-gl*_amd64.deb libvirt-clients_*_amd64.deb libvirt-common_*_amd64.deb libvirt-daemon_*_amd64.deb libvirt-daemon-common_*_amd64.deb libvirt-daemon-config-network_*_all.deb libvirt-daemon-config-nwfilter_*_all.deb libvirt-daemon-driver-ch-gl_*_amd64.deb libvirt-daemon-driver-network_*_amd64.deb libvirt-daemon-driver-nodedev_*_amd64.deb libvirt-daemon-driver-nwfilter_*_amd64.deb libvirt-daemon-driver-qemu_*_amd64.deb libvirt-daemon-driver-secret_*_amd64.deb libvirt-daemon-driver-storage_*_amd64.deb libvirt-daemon-log_*_amd64.deb libvirt-daemon-system_*_amd64.deb libvirt0_*_amd64.deb popd > /dev/null rm -rf /tmp/custompackages @@ -34,11 +37,11 @@ function create() { shift ID=$1 shift - adduser --uid $ID --home /var/lib/$NAME $NAME \ + adduser --uid "$ID" --home "/var/lib/$NAME" "$NAME" \ --system --group --disabled-password --disabled-login echo "$@" for group in "$@"; do - adduser $NAME $group + adduser "$NAME" "$group" done }