I’m using autofs to mount a nfs share on boot (from my fileserver to my kodi), with raspbian this was working (though I must admit that that was an older version and dietpi is a fresh install now).
When I reboot my rpi 3 I’m getting:
# systemctl status autofs
● autofs.service - Automounts filesystems on demand
Loaded: loaded (/lib/systemd/system/autofs.service; enabled; vendor preset: enabled)
Active: active (running) since Tue 2020-12-29 11:49:36 GMT; 8min ago
Process: 359 ExecStart=/usr/sbin/automount $OPTIONS --pid-file /var/run/autofs.pid (code=exited, status=0/SUCCESS)
Main PID: 379 (automount)
Tasks: 4 (limit: 1635)
CGroup: /system.slice/autofs.service
└─379 /usr/sbin/automount --pid-file /var/run/autofs.pid
Dec 29 11:49:36 tv.cyber1000wn.local systemd[1]: Starting Automounts filesystems on demand...
Dec 29 11:49:36 tv.cyber1000wn.local systemd[1]: Started Automounts filesystems on demand.
Dec 29 11:49:39 tv.cyber1000wn.local automount[379]: add_host_addrs: hostname lookup failed: Temporary failure in name resolution
And a call to /mnt/autofs/fileserver/xyz doesn’t return anything.
If I restart with systemctl restart autofs it is working (until I reboot), so I think it might be a problem with the sequence with systemd, but couldn’t solve the problem so far.
My /lib/systemd/system/autofs.service looks like this (I haven’t changed here anythings, it’s the original file):
[Unit]
Description=Automounts filesystems on demand
After=network.target ypbind.service sssd.service network-online.target remote-fs.target
Wants=network-online.target
[Service]
Type=forking
PIDFile=/var/run/autofs.pid
EnvironmentFile=-/etc/default/autofs
ExecStart=/usr/sbin/automount $OPTIONS --pid-file /var/run/autofs.pid
ExecReload=/bin/kill -HUP $MAINPID
TimeoutSec=180
[Install]
WantedBy=multi-user.target
Any idea whats’s going on here or how I can’t analyze this further?
Thanks!