24.03.2018 22:54, Michael Hirmke пишет:
Hi,
[...]
systemd tries to mount the second fstab entry before the network and name resolution are available, while the first one is mounted correctly after the network is available and named has been started. And yes, the entries are shown in that order in the journal, though the time seems to jump back and forth.
I can't see any difference between the two entries. Why does systemd treat them different?
systemctl show upnp\x2droot\x2dremote-VDR_Videos.mount var-spool-video-video0.mount would be good start.
they differ in a few entries:
------------------------< snip snip snip >----------------------------- [...] < Result=exit-code ---
Result=success [...] < After=network.target remote-fs-pre.target -.mount systemd-journald.socket system.slice network-online.target < RequiresMountsFor=/upnp-root-remote
After=system.slice network-online.target systemd-journald.socket remote-fs-pre.target -.mount nfs-server.service network.target RequiresMountsFor=/var/spool/video [...] < NeedDaemonReload=yes
NeedDaemonReload=no [...] ------------------------< snip snip snip >-----------------------------
The difference for After= can explain the different behaviour on boot.
Actually it does not. nfs-server.service should not have any impact on remote mount (unless you do loopback mount from the same host, but your error is different). Are you using wicked or NetworkManager?
But both entries are created by systemd-fstab-generator.
It is possible to extend generated units as well. Start with "systemctl cat var-spool-video-video0.mount nfs-server.service" to check drop-ins for these units.
So the question keeps the same: Why is systemd treating both entries different?
This is side question (only out of curiosity). The actual question is - what is needed to ensure name resolution is available when NFS are mounted on boot. It depends on your configuration. Normal way to do it is to order remote mounts after nss-lookup.target. Your log entries suggest that you are running local resolver daemon; if it is used for local name resolution you need additionally order nss-lookup.target after it. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org