From 49d7fc99b939aa9e6601abb2d871f3ef78dc90f5 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Fri, 3 Apr 2015 14:32:32 +0200 Subject: 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. --- units/basic.target | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'units') 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 -- cgit v1.2.3-54-g00ecf