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]
|
[Unit]
|
||||||
ConditionPathExists=|/var/run/qubes-service/network-manager
|
ConditionPathExists=|/var/run/qubes-service/network-manager
|
||||||
ConditionPathExists=|/var/run/qubes-service/modem-manager
|
ConditionPathExists=|/var/run/qubes-service/modem-manager
|
||||||
|
After=qubes-sysinit.service
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
ConditionPathExists=/var/run/qubes-service/network-manager
|
ConditionPathExists=/var/run/qubes-service/network-manager
|
||||||
# For /rw
|
# For /rw
|
||||||
After=qubes-misc-post.service
|
After=qubes-misc-post.service qubes-sysinit.service
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
ConditionPathExists=/var/run/qubes-service/network-manager
|
ConditionPathExists=/var/run/qubes-service/network-manager
|
||||||
# For /rw
|
# For /rw
|
||||||
After=qubes-misc-post.service
|
After=qubes-misc-post.service qubes-sysinit.service
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
ExecStartPre=/usr/lib/qubes/network-manager-prepare-conf-dir
|
ExecStartPre=/usr/lib/qubes/network-manager-prepare-conf-dir
|
||||||
|
@ -1,2 +1,3 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
ConditionPathExists=/var/run/qubes-service/ntpd
|
ConditionPathExists=/var/run/qubes-service/ntpd
|
||||||
|
After=qubes-sysinit.service
|
||||||
|
@ -3,7 +3,7 @@ ConditionPathExists=/var/run/qubes-service/crond
|
|||||||
|
|
||||||
[Unit]
|
[Unit]
|
||||||
# For /rw
|
# For /rw
|
||||||
After=qubes-misc-post.service
|
After=qubes-misc-post.service qubes-sysinit.service
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
ExecStartPre=/bin/mkdir --mode=0700 -p /rw/cron
|
ExecStartPre=/bin/mkdir --mode=0700 -p /rw/cron
|
||||||
|
@ -3,7 +3,7 @@ ConditionPathExists=/var/run/qubes-service/crond
|
|||||||
|
|
||||||
[Unit]
|
[Unit]
|
||||||
# For /rw
|
# For /rw
|
||||||
After=qubes-misc-post.service
|
After=qubes-misc-post.service qubes-sysinit.service
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
ExecStartPre=/bin/mkdir --mode=0700 -p /rw/cron
|
ExecStartPre=/bin/mkdir --mode=0700 -p /rw/cron
|
||||||
|
@ -1,2 +1,3 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
ConditionPathExists=/var/run/qubes-service/cups
|
ConditionPathExists=/var/run/qubes-service/cups
|
||||||
|
After=qubes-sysinit.service
|
||||||
|
@ -1,2 +1,3 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
ConditionPathExists=/var/run/qubes-service/cups
|
ConditionPathExists=/var/run/qubes-service/cups
|
||||||
|
After=qubes-sysinit.service
|
||||||
|
@ -1,2 +1,3 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
ConditionPathExists=/var/run/qubes-service/cups
|
ConditionPathExists=/var/run/qubes-service/cups
|
||||||
|
After=qubes-sysinit.service
|
||||||
|
@ -1,2 +1,3 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
ConditionPathExists=/var/run/qubes-service/getty@tty
|
ConditionPathExists=/var/run/qubes-service/getty@tty
|
||||||
|
After=qubes-sysinit.service
|
||||||
|
@ -1,2 +1,3 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
ConditionPathExists=/var/run/qubes-service/netfilter-persistent
|
ConditionPathExists=/var/run/qubes-service/netfilter-persistent
|
||||||
|
After=qubes-sysinit.service
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
# Disable sysinit version of network-manager (wheezy)
|
# Disable sysinit version of network-manager (wheezy)
|
||||||
[Unit]
|
[Unit]
|
||||||
ConditionPathExists=!/var/run/qubes-service
|
ConditionPathExists=!/var/run/qubes-service
|
||||||
|
After=qubes-sysinit.service
|
||||||
|
@ -1,2 +1,3 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
ConditionPathExists=/var/run/qubes-service/ntpd
|
ConditionPathExists=/var/run/qubes-service/ntpd
|
||||||
|
After=qubes-sysinit.service
|
||||||
|
@ -1,2 +1,3 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
ConditionPathExists=/var/run/qubes-service/cups
|
ConditionPathExists=/var/run/qubes-service/cups
|
||||||
|
After=qubes-sysinit.service
|
||||||
|
@ -1,2 +1,3 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
ConditionPathExists=/var/run/qubes-service/cups
|
ConditionPathExists=/var/run/qubes-service/cups
|
||||||
|
After=qubes-sysinit.service
|
||||||
|
@ -1,2 +1,3 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
ConditionPathExists=/var/run/qubes-service/cups
|
ConditionPathExists=/var/run/qubes-service/cups
|
||||||
|
After=qubes-sysinit.service
|
||||||
|
@ -1,2 +1,3 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
ConditionPathExists=!/var/run/qubes/this-is-templatevm
|
ConditionPathExists=!/var/run/qubes/this-is-templatevm
|
||||||
|
After=qubes-sysinit.service
|
||||||
|
Loading…
Reference in New Issue
Block a user