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 <awilliam@redhat.com>
Signed-off-by: Brian C. Lane <bcl@redhat.com>
This commit is contained in:
Adam Williamson 2025-03-28 15:53:07 -07:00 committed by Brian C. Lane
parent c9b2d58b4d
commit c4a4ee6ca4
2 changed files with 10 additions and 0 deletions

View File

@ -0,0 +1,3 @@
[Unit]
ConditionUser=

View File

@ -22,6 +22,13 @@ append etc/mdadm.conf "HOMEHOST <ignore>\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