-
-
Notifications
You must be signed in to change notification settings - Fork 109
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
We don't have pipewire plugin yet, and it conflicts with pulseaudio when accessing physical audio cards (sys-audio case). Fixes QubesOS/qubes-issues#7485 Related to QubesOS/qubes-issues#6358
- Loading branch information
Showing
6 changed files
with
42 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,6 +34,7 @@ | |
%define plateform_python3_sitelib %(/usr/libexec/platform-python -c 'import distutils.sysconfig; print(distutils.sysconfig.get_python_lib())') | ||
%endif | ||
|
||
# FIXME: add user units support to is_static()/is_masked()/mask()/unmask() functions | ||
%define scriptletfuns is_static() { \ | ||
[ -f "%{_unitdir}/$1" ] && ! grep -q '^[[].nstall]' "%{_unitdir}/$1" \ | ||
} \ | ||
|
@@ -65,6 +66,7 @@ unmask() { \ | |
\ | ||
preset_units() { \ | ||
local represet= \ | ||
local extra_opts="$3" \ | ||
cat "$1" | while read action unit_name \ | ||
do \ | ||
if [ "$action" = "#" -a "$unit_name" = "Units below this line will be re-preset on package upgrade" ] \ | ||
|
@@ -90,15 +92,16 @@ preset_units() { \ | |
# We masked this static unit before, now we unmask it. \ | ||
unmask "$unit_name" \ | ||
fi \ | ||
systemctl --no-reload preset "$unit_name" >/dev/null 2>&1 || : \ | ||
systemctl --no-reload $extra_opts preset "$unit_name" >/dev/null 2>&1 || : \ | ||
else \ | ||
systemctl --no-reload preset "$unit_name" >/dev/null 2>&1 || : \ | ||
systemctl --no-reload $extra_opts preset "$unit_name" >/dev/null 2>&1 || : \ | ||
fi \ | ||
fi \ | ||
done \ | ||
} \ | ||
\ | ||
restore_units() { \ | ||
local extra_opts="$2" \ | ||
grep '^[[:space:]]*[^#;]' "$1" | while read action unit_name \ | ||
do \ | ||
if is_static "$unit_name" && is_masked "$unit_name" \ | ||
|
@@ -107,7 +110,7 @@ restore_units() { \ | |
# Otherwise systemctl preset will fail badly. \ | ||
unmask "$unit_name" \ | ||
fi \ | ||
systemctl --no-reload preset "$unit_name" >/dev/null 2>&1 || : \ | ||
systemctl --no-reload $extra_opts preset "$unit_name" >/dev/null 2>&1 || : \ | ||
done \ | ||
} \ | ||
|
||
|
@@ -957,6 +960,7 @@ The Qubes core startup configuration for SystemD init. | |
/usr/lib/systemd/system/[email protected] | ||
/usr/lib/systemd/system/qubes-updates-proxy-forwarder.socket | ||
/usr/lib/systemd/system-preset/%qubes_preset_file | ||
/usr/lib/systemd/user-preset/%qubes_preset_file | ||
/usr/lib/modules-load.d/qubes-core.conf | ||
/usr/lib/systemd/system/boot.automount.d/30_qubes.conf | ||
/usr/lib/systemd/system/chronyd.service.d/30_qubes.conf | ||
|
@@ -993,9 +997,11 @@ changed= | |
if [ $1 -eq 1 ] | ||
then | ||
preset_units %{_presetdir}/%qubes_preset_file initial | ||
preset_units %{%_userpresetdir}/%qubes_preset_file initial --global | ||
changed=true | ||
else | ||
preset_units %{_presetdir}/%qubes_preset_file upgrade | ||
preset_units %{_userpresetdir}/%qubes_preset_file upgrade --global | ||
changed=true | ||
# Upgrade path - now qubes-iptables is used instead | ||
for svc in iptables ip6tables | ||
|
@@ -1045,6 +1051,8 @@ if [ $1 -eq 0 ] ; then | |
# once the Qubes OS preset file is removed. | ||
mkdir -p %{_rundir}/qubes-uninstall | ||
cp -f %{_presetdir}/%qubes_preset_file %{_rundir}/qubes-uninstall/ | ||
cp -f %{_userpresetdir}/%qubes_preset_file \ | ||
%{_rundir}/qubes-uninstall/user-%qubes_preset_file | ||
fi | ||
|
||
%postun systemd | ||
|
@@ -1058,6 +1066,7 @@ then | |
# We have a saved preset file (or more). | ||
# Re-preset the units mentioned there. | ||
restore_units %{_rundir}/qubes-uninstall/%qubes_preset_file | ||
restore_units %{_rundir}/qubes-uninstall/user-%qubes_preset_file --global | ||
rm -rf %{_rundir}/qubes-uninstall | ||
changed=true | ||
fi | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
|
||
# Units below this line will be re-preset on package upgrade | ||
|
||
# conflicts with pulseaudio | ||
disable pipewire.socket | ||
disable pipewire.service | ||
disable wireplumber.service |