Am Samstag, 6. April 2019, 20:39:40 CEST schrieb Per Jessen:
Mathias Homann wrote:
Am Samstag, 6. April 2019, 20:25:50 CEST schrieb Per Jessen:
Mathias Homann wrote:
So I'm having this annoying problem with systemd...
here's my setup:
Network card is handled by NetworkManager, configured by DHCP.
Computer gets user accounts AND autofs maps from NIS
The state of things right now: after the computer starts I have to switch to a console, and log in as root, and restart autofs and sddm to be able to log in with my regular user (home from NFS via autofs, autofs maps from nis...)
I had a systemd override file for sddm for a while that stated that sddm required autofs... but that would basically restart X every time a network interface went up/down, which does happen every time you start or stop a VM...
Any idea no how to fix it?
Let systemd do the automounting? I haven't thought it through, but I have had vaguely similar problems, and leaving it up to systemd to auto-mount solved them.
... can systemd do the automounting with standard automounter maps provided by nis?
I don't know, I have not had reason to try. It does not sound too unreasonable to have a systemd auto-mount unit to do a NIS lookup. Let us know how it goes.
At least according to what I've found with google, systemd can automount stuff that used to live in /etc/fstab, but not based on classic automounter maps, either stored locally or in NIS. Besides, the way the systemd automounter handles mounts is kinda detrimental for a desktop system, each mount shows up as an actual DEVICE in your file manager - annoying to users. Anyway, I switched back to wickedd and now all is well again - except I don't have firewalld anymore - it works best with networkmanager after all. Cheers MH -- Mathias Homann Senior Systems Engineer, IT Consultant. IT Trainer Mathias.Homann@openSUSE.org http://www.tuxonline.tech gpg key fingerprint: 8029 2240 F4DD 7776 E7D2 C042 6B8E 029E 13F2 C102