I have this entry in my fstab:
sc-netapp48.nvidia.com:/vol/scratch9/scratch.securesign_new /home/scratch.securesign_new nfs _netdev,comment=systemd.automount 0 0
I’m not sure how this works exactly, but when I’m on the VPN and need to access /home/scratch.securesign_new, it magically shows up.
However, when I disconnect from the VPN, it appears that /home/scratch.securesign_new is still mounted. This causes all sorts of problems. For example, whenever I install a program, the installer tries to access /home/scratch.securesign_new/.config, which doesn’t exist.
So I need to be able to "umount -l /home/scratch.securesign_new" when the VPN closes. How do I do that? I tried adding a script in /etc/network/if-down.d/, but that script is not executed when the VPN closes.
I’m running Kubuntu 20.04.