1
0
mirror of https://github.com/systemd/systemd.git synced 2024-12-22 17:35:35 +03:00

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.
This commit is contained in:
Lennart Poettering 2015-04-03 14:32:32 +02:00
parent efb3e19be9
commit 49d7fc99b9

View 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