systemd: improve ordering of systemd units

- qubes-misc-post.service is no longer responsible for mounting /rw
- both qubes-sysinit.service and qubes-mount-dirs.service are part of
  basic.target, so no need to mention them explicitly (as long as
  DefaultDependencies=yes)

QubesOS/qubes-issues#2198
This commit is contained in:
Marek Marczykowski-Górecki 2016-07-27 05:13:21 +02:00
parent ed434ad63f
commit 60d16ea587
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724
4 changed files with 3 additions and 11 deletions

View File

@ -1,4 +1,2 @@
[Unit]
ConditionPathExists=/var/run/qubes-service/network-manager
# For /rw
After=qubes-misc-post.service qubes-sysinit.service

View File

@ -1,7 +1,9 @@
[Unit]
ConditionPathExists=/var/run/qubes-service/network-manager
# For /rw
After=qubes-misc-post.service qubes-sysinit.service
After=qubes-mount-dirs.service
# For /var/run/qubes-service
After=qubes-sysinit.service
[Service]
ExecStartPre=/usr/lib/qubes/network-manager-prepare-conf-dir

View File

@ -1,10 +1,6 @@
[Unit]
ConditionPathExists=/var/run/qubes-service/crond
[Unit]
# For /rw
After=qubes-misc-post.service qubes-sysinit.service
[Service]
ExecStartPre=/bin/mkdir --mode=0700 -p /rw/cron
ExecStartPre=/bin/mount --bind /rw/cron /var/spool/cron

View File

@ -1,10 +1,6 @@
[Unit]
ConditionPathExists=/var/run/qubes-service/crond
[Unit]
# For /rw
After=qubes-misc-post.service qubes-sysinit.service
[Service]
ExecStartPre=/bin/mkdir --mode=0700 -p /rw/cron
ExecStartPre=/bin/mount --bind /rw/cron /var/spool/cron