From c4a4ee6ca4c718b0c029dbf886876e752e00439c Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Fri, 28 Mar 2025 15:53:07 -0700 Subject: [PATCH] runtime-postinstall: allow pipewire to run as root https://gitlab.freedesktop.org/pipewire/pipewire/-/commit/17eaf83 prevented pipewire socket and service from running as root, but in the installer environment, we need them to, or else RDP install does not work. Resolves: RHEL-102419 Signed-off-by: Adam Williamson Signed-off-by: Brian C. Lane --- 80-rhel/config_files/common/systemd-allowroot.conf | 3 +++ 80-rhel/runtime-postinstall.tmpl | 7 +++++++ 2 files changed, 10 insertions(+) create mode 100644 80-rhel/config_files/common/systemd-allowroot.conf diff --git a/80-rhel/config_files/common/systemd-allowroot.conf b/80-rhel/config_files/common/systemd-allowroot.conf new file mode 100644 index 0000000..5352b62 --- /dev/null +++ b/80-rhel/config_files/common/systemd-allowroot.conf @@ -0,0 +1,3 @@ +[Unit] +ConditionUser= + diff --git a/80-rhel/runtime-postinstall.tmpl b/80-rhel/runtime-postinstall.tmpl index 9408c38..6a3f156 100644 --- a/80-rhel/runtime-postinstall.tmpl +++ b/80-rhel/runtime-postinstall.tmpl @@ -22,6 +22,13 @@ append etc/mdadm.conf "HOMEHOST \n" remove etc/systemd/system/default.target symlink /lib/systemd/system/anaconda.target etc/systemd/system/default.target +## Allow pipewire.service and pipewire.socket to run as root +## https://bugzilla.redhat.com/show_bug.cgi?id=2355207 +mkdir etc/systemd/user/pipewire.service.d/ +install ${configdir}/systemd-allowroot.conf etc/systemd/user/pipewire.service.d/allowroot.conf +mkdir etc/systemd/user/pipewire.socket.d/ +install ${configdir}/systemd-allowroot.conf etc/systemd/user/pipewire.socket.d/allowroot.conf + ## Make sure tmpfs is enabled mkdir etc/systemd/system/local-fs.target.wants/ symlink /lib/systemd/system/tmp.mount etc/systemd/system/local-fs.target.wants/tmp.mount