chiark / gitweb /
units: explicitly require /var, /tmp and /var/tmp to be mounted before basic.target
authorLennart Poettering <lennart@poettering.net>
Fri, 3 Apr 2015 12:32:32 +0000 (14:32 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 3 Apr 2015 12:32:32 +0000 (14:32 +0200)
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.

units/basic.target

index abb63ec..e0e1e60 100644 (file)
@@ -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