summaryrefslogtreecommitdiffstats
path: root/molecule/archlinux
diff options
context:
space:
mode:
authorAhmed Abdelhalim <[email protected]>2026-01-08 23:48:25 +0100
committerAhmed Abdelhalim <[email protected]>2026-01-09 00:21:23 +0100
commit5e336e130b454acd6d5724805798e496608a9baf (patch)
treee35561e52f457dc1a5ed6c8c1bc477698092b8ed /molecule/archlinux
parentcf444228b10a4398638d330f1394e846c85f2abb (diff)
Prepare archlinux container to have dbus/systemctl --user scope
Co-authored-by: claud.ai
Diffstat (limited to 'molecule/archlinux')
-rw-r--r--molecule/archlinux/Dockerfile.j25
1 files changed, 4 insertions, 1 deletions
diff --git a/molecule/archlinux/Dockerfile.j2 b/molecule/archlinux/Dockerfile.j2
index 3dc35f2d..7f098c87 100644
--- a/molecule/archlinux/Dockerfile.j2
+++ b/molecule/archlinux/Dockerfile.j2
@@ -2,7 +2,7 @@ FROM docker.io/library/archlinux
ENV container docker
-RUN pacman -Syu --noconfirm --needed python3 systemd udev \
+RUN pacman -Syu --noconfirm --needed python3 systemd udev dbus \
&& pacman -Scc --noconfirm
RUN (cd /lib/systemd/system/sysinit.target.wants/; \
@@ -14,6 +14,9 @@ RUN (cd /lib/systemd/system/sysinit.target.wants/; \
rm -f /lib/systemd/system/basic.target.wants/*;\
rm -f /lib/systemd/system/anaconda.target.wants/*;
+# Workaround systemctl --user failing in testing
+RUN systemctl enable dbus.service systemd-logind.service
+
# Workaround archlinux not including any non-indo-european locales
# https://gitlab.archlinux.org/archlinux/archlinux-docker/-/issues/59
RUN cp -r /usr/share/i18n/locales/en_US /usr/share/i18n/locales/de_DE;