Prepare SysV tooling in install-script test containers

The netbird package postinstall registers a SysV service when systemd is
not running. The trixie and fedora images ship without /etc/init.d and
the service tool, failing the postinstall before the UI gating under test.
This commit is contained in:
mlsmaycon
2026-07-28 18:52:48 +02:00
parent 6175888bce
commit 3b32ca3924

View File

@@ -72,6 +72,16 @@ jobs:
with:
persist-credentials: false
- name: prepare container
# The netbird package postinstall registers a SysV service when
# systemd is not running. The trixie and fedora images ship without
# the SysV directories and tools it needs, unlike the older images.
run: |
mkdir -p /etc/init.d
if command -v dnf >/dev/null 2>&1; then
dnf -y install initscripts-service || dnf -y install initscripts
fi
- name: run install script
env:
XDG_CURRENT_DESKTOP: GNOME