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:
Marek Marczykowski-Górecki 2016-05-12 00:15:14 +02:00
parent b553f5c7b4
commit 5e08e2bc1d
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724
17 changed files with 17 additions and 4 deletions

View File

@ -1,3 +1,4 @@
[Unit]
ConditionPathExists=|/var/run/qubes-service/network-manager
ConditionPathExists=|/var/run/qubes-service/modem-manager
After=qubes-sysinit.service

View File

@ -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

View File

@ -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

View File

@ -1,2 +1,3 @@
[Unit]
ConditionPathExists=/var/run/qubes-service/ntpd
After=qubes-sysinit.service

View File

@ -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

View File

@ -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

View File

@ -1,2 +1,3 @@
[Unit]
ConditionPathExists=/var/run/qubes-service/cups
After=qubes-sysinit.service

View File

@ -1,2 +1,3 @@
[Unit]
ConditionPathExists=/var/run/qubes-service/cups
After=qubes-sysinit.service

View File

@ -1,2 +1,3 @@
[Unit]
ConditionPathExists=/var/run/qubes-service/cups
After=qubes-sysinit.service

View File

@ -1,2 +1,3 @@
[Unit]
ConditionPathExists=/var/run/qubes-service/getty@tty
After=qubes-sysinit.service

View File

@ -1,2 +1,3 @@
[Unit]
ConditionPathExists=/var/run/qubes-service/netfilter-persistent
After=qubes-sysinit.service

View File

@ -1,3 +1,4 @@
# Disable sysinit version of network-manager (wheezy)
[Unit]
ConditionPathExists=!/var/run/qubes-service
After=qubes-sysinit.service

View File

@ -1,2 +1,3 @@
[Unit]
ConditionPathExists=/var/run/qubes-service/ntpd
After=qubes-sysinit.service

View File

@ -1,2 +1,3 @@
[Unit]
ConditionPathExists=/var/run/qubes-service/cups
After=qubes-sysinit.service

View File

@ -1,2 +1,3 @@
[Unit]
ConditionPathExists=/var/run/qubes-service/cups
After=qubes-sysinit.service

View File

@ -1,2 +1,3 @@
[Unit]
ConditionPathExists=/var/run/qubes-service/cups
After=qubes-sysinit.service

View File

@ -1,2 +1,3 @@
[Unit]
ConditionPathExists=!/var/run/qubes/this-is-templatevm
After=qubes-sysinit.service