24.12.2016 04:23, Wols Lists пишет:
So basically, the question is "how do I make systemd do the mounts and unmounts in the right order, WHILE THE USER IS LOGGED IN, and not hang starting or stopping the system because the network is not available?"
I am afraid there is currently no way to do it. You would need to order your mount units against user session(s) so that mount units are stopped before user sessions. But user sessions are dynamic so you cannot add this dependency to mount units; and user sessions do not utilize templates, but created internally, so you cannot add these dependencies to sessions either. This would require adding some synchronization point and order all user sessions before it, so that you could add your mount units against this synchronization point. Something that requires source code change. Try to open systemd issue on github. Pragmatic answer - if your mount points depend on existence of user session, why not perform mounting and unmounting as part of user session? You can write polkit or sudo rules to allow your user unrestricted access to specific mount points. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org