From 5aae2eb3fe5b0045df93bb0203b0e1548c4b8e62 Mon Sep 17 00:00:00 2001 From: Ahmed Abdelhalim Date: Fri, 9 Jan 2026 00:57:27 +0100 Subject: Remove systemd cleanup from archlinux This might be the reason for the pipewire systemctl --user failure --- molecule/archlinux-gnome/Dockerfile.j2 | 12 ------------ molecule/archlinux/Dockerfile.j2 | 12 ------------ molecule/archlinux/converge.yml | 29 ----------------------------- 3 files changed, 53 deletions(-) diff --git a/molecule/archlinux-gnome/Dockerfile.j2 b/molecule/archlinux-gnome/Dockerfile.j2 index 7f098c87..1d1244bd 100644 --- a/molecule/archlinux-gnome/Dockerfile.j2 +++ b/molecule/archlinux-gnome/Dockerfile.j2 @@ -5,18 +5,6 @@ ENV container docker RUN pacman -Syu --noconfirm --needed python3 systemd udev dbus \ && pacman -Scc --noconfirm -RUN (cd /lib/systemd/system/sysinit.target.wants/; \ - for i in *; do [ $i == systemd-tmpfiles-setup.service ] || rm -f $i; done); \ - rm -f /lib/systemd/system/multi-user.target.wants/*;\ - rm -f /etc/systemd/system/*.wants/*;\ - rm -f /lib/systemd/system/local-fs.target.wants/*; \ - rm -f /lib/systemd/system/sockets.target.wants/*initctl*; \ - 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 7f098c87..1d1244bd 100644 --- a/molecule/archlinux/Dockerfile.j2 +++ b/molecule/archlinux/Dockerfile.j2 @@ -5,18 +5,6 @@ ENV container docker RUN pacman -Syu --noconfirm --needed python3 systemd udev dbus \ && pacman -Scc --noconfirm -RUN (cd /lib/systemd/system/sysinit.target.wants/; \ - for i in *; do [ $i == systemd-tmpfiles-setup.service ] || rm -f $i; done); \ - rm -f /lib/systemd/system/multi-user.target.wants/*;\ - rm -f /etc/systemd/system/*.wants/*;\ - rm -f /lib/systemd/system/local-fs.target.wants/*; \ - rm -f /lib/systemd/system/sockets.target.wants/*initctl*; \ - 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/converge.yml b/molecule/archlinux/converge.yml index ceec6384..d8c1dea0 100644 --- a/molecule/archlinux/converge.yml +++ b/molecule/archlinux/converge.yml @@ -77,35 +77,6 @@ - role: "btop" - role: "bluetui" - role: "wlctl" - tasks: - - name: "Debug systemd-logind status" - ansible.builtin.shell: - cmd: "{{ item }}" - loop: - - "systemctl is-active dbus" - - "systemctl is-active systemd-logind" - - "loginctl list-sessions" - - "ls -la /run/user/ || echo 'no /run/user'" - - "ls -la /run/user/1000/ || echo 'no user dir'" - - "systemctl --user status || echo 'user systemd failed'" - become: true - become_user: "{{ username }}" - register: debug_output - failed_when: false - - - name: "Show debug output" - ansible.builtin.debug: - var: debug_output - -- name: "Configure pipewire" - hosts: "archlinux" - gather_facts: true - remote_user: "{{ username }}" - environment: - PATH: "{{ ansible_env.HOME }}/.local/bin:{{ ansible_env.PATH }}" - vars: - ansible_become_method: sudo - roles: - role: "pipewire" - role: "brightnessctl" - role: "wiremix" -- cgit v1.2.3