chiark / gitweb /
remote-fs.target: want remote-fs-pre.target
authorHarald Hoyer <harald@redhat.com>
Tue, 12 Mar 2013 17:24:44 +0000 (18:24 +0100)
committerHarald Hoyer <harald@redhat.com>
Tue, 12 Mar 2013 17:24:44 +0000 (18:24 +0100)
This pulls in remote-fs-pre.target if remote-fs.target is needed.

Previously remote-fs-pre.target was not active, if no remote fs was
mounted from /etc/fstab. So, every manual remote fs mount was ordered
against the inactive remote-fs-pre.target and umount.target.

Because remote-fs-pre.target was not active, the remote fs was umounted
at umount.target time, which was too late (network already down).

Now remote-fs-pre.target is active, even if no remote fs is mounted.
On shutdown it is deactivated in the correct order and all manual remote
fs mounts also.

units/remote-fs.target

index 9e68878ad8d2c1a949acf8b8a4b214da8bc57877..b11074f8ac84a7110dd32269a1d85d27ea6fe44f 100644 (file)
@@ -8,6 +8,8 @@
 [Unit]
 Description=Remote File Systems
 Documentation=man:systemd.special(7)
+Wants=remote-fs-pre.target
+After=remote-fs-pre.target
 
 [Install]
 WantedBy=multi-user.target