Hi Wols, [...]
this works perfectly for me, because mount/umount return very quick. There even is a script distributed in /etc/NetworkManager/dispatcher.d called "nfs" to handle nfs mounts in case of stopping/starting a network interface.
Can you explain how you do this, then? I've put the mounts in fstab (which is probably a mistake), but trying to find info is an exercise in frustration. I've had hints from this list already, which I haven't tried to implement, but it would be wonderful to have a cheat-sheet to follow.
a better way to it is to create systemd mount units, but it can be done with fstab entries, too. You have a look at the nfs dispatcher script I mentioned. Everything you need is in it. The fstab entries may not have the auto option!
(Oh, and while it's not important, could your method cope with an nfs-mount home? Perfect little catch-22 - the network won't come up until the user is logged in, but there's no home directory until the user is logged in ... :-)
I have my home on nfs, too. It is mounted, as soon as the according network interface comes up, and umounted before it goes down. I don't use secrets or things like that, but the old nfs v3 logics with same uids on all machines - this also works with nfs v4.1 here.
Cheers, Wol
Bye. Michael. -- Michael Hirmke -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org