From 63408c135ecd08e80bdc3c8fea6213fd014da681 Mon Sep 17 00:00:00 2001 From: Ahmed AbdelHalim Date: Thu, 8 Jan 2026 23:48:25 +0100 Subject: Prepare archlinux container to have dbus/systemctl --user scope Co-authored-by: claud.ai --- molecule/archlinux-gnome/Dockerfile.j2 | 5 ++++- molecule/archlinux/Dockerfile.j2 | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/molecule/archlinux-gnome/Dockerfile.j2 b/molecule/archlinux-gnome/Dockerfile.j2 index 3dc35f2d..7f098c87 100644 --- a/molecule/archlinux-gnome/Dockerfile.j2 +++ b/molecule/archlinux-gnome/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; 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; -- cgit v1.2.3