diff options
| author | Ahmed Abdelhalim <[email protected]> | 2026-01-08 23:48:25 +0100 |
|---|---|---|
| committer | Ahmed Abdelhalim <[email protected]> | 2026-01-09 00:21:23 +0100 |
| commit | 5e336e130b454acd6d5724805798e496608a9baf (patch) | |
| tree | e35561e52f457dc1a5ed6c8c1bc477698092b8ed /molecule | |
| parent | cf444228b10a4398638d330f1394e846c85f2abb (diff) | |
Prepare archlinux container to have dbus/systemctl --user scope
Co-authored-by: claud.ai
Diffstat (limited to 'molecule')
| -rw-r--r-- | molecule/archlinux-gnome/Dockerfile.j2 | 5 | ||||
| -rw-r--r-- | 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; |
