summaryrefslogtreecommitdiff
path: root/units
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-04-03 14:32:32 +0200
committerLennart Poettering <lennart@poettering.net>2015-04-03 14:32:32 +0200
commit49d7fc99b939aa9e6601abb2d871f3ef78dc90f5 (patch)
tree7a2e6c7830f33ed4bc3a8ec6a7631ce0401122ec /units
parentefb3e19be9c568974b221990b9e84fb5304c5537 (diff)
units: explicitly require /var, /tmp and /var/tmp to be mounted before basic.target
We support /var, /tmp and /var/tmp on NFS. NFS shares however are by default ordered only before remote-fs.target which is a late-boot service. /var, /tmp, /var/tmp need to be around earlier though, hence explicitly order them before basic.target. Note that this change simply makes explicit what was implicit before, since many early-boot services pulled in parts of /var anyway early.
Diffstat (limited to 'units')
-rw-r--r--units/basic.target8
1 files changed, 5 insertions, 3 deletions
diff --git a/units/basic.target b/units/basic.target
index abb63ec560..e0e1e604f8 100644
--- a/units/basic.target
+++ b/units/basic.target
@@ -8,8 +8,10 @@
[Unit]
Description=Basic System
Documentation=man:systemd.special(7)
-
Requires=sysinit.target
-After=sysinit.target
Wants=sockets.target timers.target paths.target slices.target
-After=sockets.target paths.target slices.target
+After=sysinit.target sockets.target paths.target slices.target
+
+# We support /var, /tmp, /var/tmp, being on NFS, but we don't pull in
+# remote-fs.target by default, hence explicitly pull /var in here.
+RequiresMountsFor=/var /tmp /var/tmp