Skip to content

Commit d831c05

Browse files
committed
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
1 parent 2c008b8 commit d831c05

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

features/sci/exec.config

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#!/usr/bin/env bash
2+
23
set -Eeuo pipefail
34

45
# Undo the gardener feature disablement
@@ -19,6 +20,8 @@ for p in https://github.com/gardenlinux/package-edk2-cloud-hypervisor-gl/release
1920
done
2021

2122
pushd /tmp/custompackages > /dev/null
23+
rm -f -- *dbgsym* *arm64* || true
24+
ls -1
2225
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
2326
popd > /dev/null
2427
rm -rf /tmp/custompackages
@@ -34,11 +37,11 @@ function create() {
3437
shift
3538
ID=$1
3639
shift
37-
adduser --uid $ID --home /var/lib/$NAME $NAME \
40+
adduser --uid "$ID" --home "/var/lib/$NAME" "$NAME" \
3841
--system --group --disabled-password --disabled-login
3942
echo "$@"
4043
for group in "$@"; do
41-
adduser $NAME $group
44+
adduser "$NAME" "$group"
4245
done
4346
}
4447

0 commit comments

Comments
 (0)