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
(cherry picked from commit 60d16ea587
)
This commit is contained in:
parent
5266da4dad
commit
d7df915c5b
|
@ -1,4 +1,2 @@
|
||||||
[Unit]
|
[Unit]
|
||||||
ConditionPathExists=/var/run/qubes-service/network-manager
|
ConditionPathExists=/var/run/qubes-service/network-manager
|
||||||
# For /rw
|
|
||||||
After=qubes-misc-post.service qubes-sysinit.service
|
|
||||||
|
|
|
@ -1,7 +1,9 @@
|
||||||
[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 qubes-sysinit.service
|
After=qubes-mount-dirs.service
|
||||||
|
# For /var/run/qubes-service
|
||||||
|
After=qubes-sysinit.service
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
ExecStartPre=/usr/lib/qubes/network-manager-prepare-conf-dir
|
ExecStartPre=/usr/lib/qubes/network-manager-prepare-conf-dir
|
||||||
|
|
|
@ -1,10 +1,6 @@
|
||||||
[Unit]
|
[Unit]
|
||||||
ConditionPathExists=/var/run/qubes-service/crond
|
ConditionPathExists=/var/run/qubes-service/crond
|
||||||
|
|
||||||
[Unit]
|
|
||||||
# For /rw
|
|
||||||
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
|
||||||
ExecStartPre=/bin/mount --bind /rw/cron /var/spool/cron
|
ExecStartPre=/bin/mount --bind /rw/cron /var/spool/cron
|
||||||
|
|
|
@ -1,10 +1,6 @@
|
||||||
[Unit]
|
[Unit]
|
||||||
ConditionPathExists=/var/run/qubes-service/crond
|
ConditionPathExists=/var/run/qubes-service/crond
|
||||||
|
|
||||||
[Unit]
|
|
||||||
# For /rw
|
|
||||||
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
|
||||||
ExecStartPre=/bin/mount --bind /rw/cron /var/spool/cron
|
ExecStartPre=/bin/mount --bind /rw/cron /var/spool/cron
|
||||||
|
|
Loading…
Reference in New Issue
Block a user