I have several nfs shares mounted under /mnt/nfs/
. I want to give a service ro access to one of them so i created a bind mount that’s basically a copy-paste from the wiki (Filesystems - NixOS Wiki).
When I do this, journalctl -xe
gets filled with systemd ordering cycle errors, units get deleted, and things aren’t loaded. I tried poking around and from what I can tell there is a circular dependency between network.target and local-fs. There’s nothing in the wiki about using a network share, and google has failed me.
Is bind mounting on a network share not allowed? or is there another way to do it that doesn’t create the dependency?
EDIT: apparently adding the x-systemd.automount
and noauto
options fix this.