Dear Forum,
currently, I have the problem that my NFS shares that should be mounted via systemd unit are not mounted at system startup, because the network is only connected when the user logs in. The reason is that I do not have a network setup for all users, but have set up a separate setup for each user via KDE network manager.
I could solve the problem by creating a network setup that all users can use. However, this is then also used when the user logs in, and not the user-specific network setup.
How can I solve my problem?
Is there a way to tell the systemd units to mount the NFS only on login?
Or is there a possibility that KDE changes the network on login?
My mount unit looks like:
[Unit]
Description=Mount /my_path/to/music via NFS
Requires=NetworkManager.service
After=network-online.service
Wants=network-online.target
[Mount]
What=192.168.128.xx:/music
Where=/media/music
Type=nfs
Options=auto,users,nfsvers=4,rsize=32768,wsize=32768
[Install]
WantedBy=multi-user.target
Remark: I did not us a automount unit.
Thank you in advance for your help.