Carry the Toolbx default in the Container Runner Purpose

This commit is contained in:
Archipelago 2026-11-17 10:01:16 +00:00
parent 54fefef41c
commit 06b3bb2ed5

View file

@ -7,7 +7,17 @@ sed -e 's/modconf block/modconf kms keyboard sd-vconsole block/' \
"$pkg/runtime/usr/lib/archipelago/mkinitcpio-core.conf" > "$pkg/runtime/usr/lib/archipelago/mkinitcpio-container-runner.conf"
printf 'Container Runner; operator-managed container host\n' > "$pkg/runtime/usr/lib/archipelago/container-runner"
printf 'purpose/server/container-runner\n' > "$pkg/runtime/usr/lib/archipelago/purpose"
mkdir -p "$pkg/runtime/usr/lib/systemd/system-preset" "$pkg/runtime/usr/share/archipelago/container-runner"
mkdir -p "$pkg/runtime/usr/lib/systemd/system" "$pkg/runtime/usr/lib/systemd/system-preset" \
"$pkg/runtime/usr/etc/containers/registries.conf.d" "$pkg/runtime/usr/share/archipelago/container-runner"
# D-118: Toolbx is part of this Purpose too, with the same upstream Arch image as
# Core and Desktop Purposes. The Purpose carries the default so it does not depend
# on a Core rebuild to add it.
cat > "$pkg/runtime/usr/etc/containers/toolbox.conf" <<'TOOLBOX'
@@TOOLBOX_CONFIG@@
TOOLBOX
cat > "$pkg/runtime/usr/etc/containers/registries.conf.d/60-archipelago-toolbox.conf" <<'TOOLBOX_REGISTRIES'
@@TOOLBOX_REGISTRIES@@
TOOLBOX_REGISTRIES
cat > "$pkg/runtime/usr/lib/systemd/system-preset/10-archipelago-container-runner.preset" <<'PRESET'
enable cockpit.socket
enable libvirtd.service