systemd: order units checking for qubes-service after qubes-sysinit
Files in /var/run/qubes-service are created by qubes-sysinit.service. So defer that condition check after that service start. Thanks @adrelanos for the report. Fixes QubesOS/qubes-issues#1985
This commit is contained in:
parent
b553f5c7b4
commit
5e08e2bc1d
@ -1,3 +1,4 @@
|
||||
[Unit]
|
||||
ConditionPathExists=|/var/run/qubes-service/network-manager
|
||||
ConditionPathExists=|/var/run/qubes-service/modem-manager
|
||||
After=qubes-sysinit.service
|
||||
|
@ -1,4 +1,4 @@
|
||||
[Unit]
|
||||
ConditionPathExists=/var/run/qubes-service/network-manager
|
||||
# For /rw
|
||||
After=qubes-misc-post.service
|
||||
After=qubes-misc-post.service qubes-sysinit.service
|
||||
|
@ -1,7 +1,7 @@
|
||||
[Unit]
|
||||
ConditionPathExists=/var/run/qubes-service/network-manager
|
||||
# For /rw
|
||||
After=qubes-misc-post.service
|
||||
After=qubes-misc-post.service qubes-sysinit.service
|
||||
|
||||
[Service]
|
||||
ExecStartPre=/usr/lib/qubes/network-manager-prepare-conf-dir
|
||||
|
@ -1,2 +1,3 @@
|
||||
[Unit]
|
||||
ConditionPathExists=/var/run/qubes-service/ntpd
|
||||
After=qubes-sysinit.service
|
||||
|
@ -3,7 +3,7 @@ ConditionPathExists=/var/run/qubes-service/crond
|
||||
|
||||
[Unit]
|
||||
# For /rw
|
||||
After=qubes-misc-post.service
|
||||
After=qubes-misc-post.service qubes-sysinit.service
|
||||
|
||||
[Service]
|
||||
ExecStartPre=/bin/mkdir --mode=0700 -p /rw/cron
|
||||
|
@ -3,7 +3,7 @@ ConditionPathExists=/var/run/qubes-service/crond
|
||||
|
||||
[Unit]
|
||||
# For /rw
|
||||
After=qubes-misc-post.service
|
||||
After=qubes-misc-post.service qubes-sysinit.service
|
||||
|
||||
[Service]
|
||||
ExecStartPre=/bin/mkdir --mode=0700 -p /rw/cron
|
||||
|
@ -1,2 +1,3 @@
|
||||
[Unit]
|
||||
ConditionPathExists=/var/run/qubes-service/cups
|
||||
After=qubes-sysinit.service
|
||||
|
@ -1,2 +1,3 @@
|
||||
[Unit]
|
||||
ConditionPathExists=/var/run/qubes-service/cups
|
||||
After=qubes-sysinit.service
|
||||
|
@ -1,2 +1,3 @@
|
||||
[Unit]
|
||||
ConditionPathExists=/var/run/qubes-service/cups
|
||||
After=qubes-sysinit.service
|
||||
|
@ -1,2 +1,3 @@
|
||||
[Unit]
|
||||
ConditionPathExists=/var/run/qubes-service/getty@tty
|
||||
After=qubes-sysinit.service
|
||||
|
@ -1,2 +1,3 @@
|
||||
[Unit]
|
||||
ConditionPathExists=/var/run/qubes-service/netfilter-persistent
|
||||
After=qubes-sysinit.service
|
||||
|
@ -1,3 +1,4 @@
|
||||
# Disable sysinit version of network-manager (wheezy)
|
||||
[Unit]
|
||||
ConditionPathExists=!/var/run/qubes-service
|
||||
After=qubes-sysinit.service
|
||||
|
@ -1,2 +1,3 @@
|
||||
[Unit]
|
||||
ConditionPathExists=/var/run/qubes-service/ntpd
|
||||
After=qubes-sysinit.service
|
||||
|
@ -1,2 +1,3 @@
|
||||
[Unit]
|
||||
ConditionPathExists=/var/run/qubes-service/cups
|
||||
After=qubes-sysinit.service
|
||||
|
@ -1,2 +1,3 @@
|
||||
[Unit]
|
||||
ConditionPathExists=/var/run/qubes-service/cups
|
||||
After=qubes-sysinit.service
|
||||
|
@ -1,2 +1,3 @@
|
||||
[Unit]
|
||||
ConditionPathExists=/var/run/qubes-service/cups
|
||||
After=qubes-sysinit.service
|
||||
|
@ -1,2 +1,3 @@
|
||||
[Unit]
|
||||
ConditionPathExists=!/var/run/qubes/this-is-templatevm
|
||||
After=qubes-sysinit.service
|
||||
|
Loading…
Reference in New Issue
Block a user