Skip to content

Commit

Permalink
disable systemd-nsresourced and systemd-userdbd for minimal sys-net a…
Browse files Browse the repository at this point in the history
…nd minimal sys-usb
  • Loading branch information
Guiiix committed Feb 23, 2025
1 parent a5ae111 commit 5a3e3ae
Show file tree
Hide file tree
Showing 7 changed files with 32 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ endif
SYSTEM_DROPINS += polkit.service
SYSTEM_DROPINS += abrtd.service
SYSTEM_DROPINS += bluetooth.service
SYSTEM_DROPINS += systemd-nsresourced.service
SYSTEM_DROPINS += systemd-nsresourced.socket
SYSTEM_DROPINS += systemd-userdbd.service
SYSTEM_DROPINS += systemd-userdbd.socket

SYSTEM_DROPINS_NETWORKING := NetworkManager.service NetworkManager-wait-online.service
SYSTEM_DROPINS_NETWORKING += tinyproxy.service
Expand Down
4 changes: 4 additions & 0 deletions debian/qubes-core-agent.install
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,10 @@ lib/systemd/system/[email protected]/30_qubes.conf
lib/systemd/system/sysinit.target.d/30_qubes.conf
lib/systemd/system/systemd-timesyncd.service.d/30_qubes.conf
lib/systemd/system/systemd-logind.service.d/30_qubes.conf
lib/systemd/system/systemd-nsresourced.service.d/30_qubes.conf
lib/systemd/system/systemd-nsresourced.socket.d/30_qubes.conf
lib/systemd/system/systemd-userdbd.service.d/30_qubes.conf
lib/systemd/system/systemd-userdbd.socket.d/30_qubes.conf
lib/systemd/resolved.conf.d/30_resolved-no-mdns-or-llmnr.conf
usr/lib/sysctl.d/20-qubes-core.conf
usr/lib/systemd/user/tracker-extract-3.service.d/30_qubes.conf
Expand Down
4 changes: 4 additions & 0 deletions rpm_spec/core-agent.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -1310,6 +1310,10 @@ The Qubes core startup configuration for SystemD init.
%_unitdir/tmp.mount.d/30_qubes.conf
%dir %_unitdir/sysinit.target.d
%_unitdir/sysinit.target.d/30_qubes.conf
%_unitdir/systemd-nsresourced.service.d/30_qubes.conf
%_unitdir/systemd-nsresourced.socket.d/30_qubes.conf
%_unitdir/systemd-userdbd.service.d/30_qubes.conf
%_unitdir/systemd-userdbd.socket.d/30_qubes.conf
%dir %_userunitdir/*.service.d
%_userunitdir/tracker-extract-3.service.d/30_qubes.conf
%_userunitdir/tracker-miner-fs-3.service.d/30_qubes.conf
Expand Down
5 changes: 5 additions & 0 deletions vm-systemd/systemd-nsresourced.service.d/30_qubes.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[Unit]
# Needs to be started as it creates /var/run/qubes-service/* files
After=qubes-sysinit.service
ConditionPathExists=!/var/run/qubes-service/minimal-netvm
ConditionPathExists=!/var/run/qubes-service/minimal-usbvm
5 changes: 5 additions & 0 deletions vm-systemd/systemd-nsresourced.socket.d/30_qubes.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[Unit]
# Needs to be started as it creates /var/run/qubes-service/* files
After=qubes-sysinit.service
ConditionPathExists=!/var/run/qubes-service/minimal-netvm
ConditionPathExists=!/var/run/qubes-service/minimal-usbvm
5 changes: 5 additions & 0 deletions vm-systemd/systemd-userdbd.service.d/30_qubes.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[Unit]
# Needs to be started as it creates /var/run/qubes-service/* files
After=qubes-sysinit.service
ConditionPathExists=!/var/run/qubes-service/minimal-netvm
ConditionPathExists=!/var/run/qubes-service/minimal-usbvm
5 changes: 5 additions & 0 deletions vm-systemd/systemd-userdbd.socket.d/30_qubes.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[Unit]
# Needs to be started as it creates /var/run/qubes-service/* files
After=qubes-sysinit.service
ConditionPathExists=!/var/run/qubes-service/minimal-netvm
ConditionPathExists=!/var/run/qubes-service/minimal-usbvm

0 comments on commit 5a3e3ae

Please sign in to comment.