summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHarald Hoyer <harald@redhat.com>2013-03-12 18:24:44 +0100
committerHarald Hoyer <harald@redhat.com>2013-03-12 18:24:44 +0100
commit6bde0b3220e95a08cefb70846f73b2cf24b7734a (patch)
treedf4b1ea2ca40a5253d5ab453d92349614bfad8b9
parent4d4fe926cb2ad1e624ddaea26f143fa93d867296 (diff)
remote-fs.target: want remote-fs-pre.target
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.
-rw-r--r--units/remote-fs.target2
1 files changed, 2 insertions, 0 deletions
diff --git a/units/remote-fs.target b/units/remote-fs.target
index 9e68878ad..b11074f8a 100644
--- a/units/remote-fs.target
+++ b/units/remote-fs.target
@@ -8,6 +8,8 @@
8[Unit] 8[Unit]
9Description=Remote File Systems 9Description=Remote File Systems
10Documentation=man:systemd.special(7) 10Documentation=man:systemd.special(7)
11Wants=remote-fs-pre.target
12After=remote-fs-pre.target
11 13
12[Install] 14[Install]
13WantedBy=multi-user.target 15WantedBy=multi-user.target