[systemd-commits] units/remote-fs.target

Harald Hoyer harald at kemper.freedesktop.org
Tue Mar 12 10:29:37 PDT 2013


 units/remote-fs.target |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit 6bde0b3220e95a08cefb70846f73b2cf24b7734a
Author: Harald Hoyer <harald at redhat.com>
Date:   Tue Mar 12 18:24:44 2013 +0100

    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.

diff --git a/units/remote-fs.target b/units/remote-fs.target
index 9e68878..b11074f 100644
--- a/units/remote-fs.target
+++ b/units/remote-fs.target
@@ -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



More information about the systemd-commits mailing list