14.10.2016 12:11, Juergen Sauer пишет:
> Systemd 231, Archlinux current
> The concept is /home is to be mounted from nfs server. Works.
> For performance reasons (email thunderbird, kde/plasma 5.8.x i.e odr
> gnome are unusable if home is pure nfs) the user sub dirs .local,
> .cache, .config, .thunderbird etc. are mounts from local fs (btrfs
> Network is without NetWorkmanager (masked), fixed configured via
> The Problem is, after boot /home is mounted or not, random result. WTF?!?
local mounts are by default ordered before remote mounts, so you have
dependency loop. Systemd resolves it by deleting one of units in this
loop. Depending on what unit gets deleted you get different results. I
do not know how deterministic algorithm is.
> The BUG is:
> The btrfs subvols are i.g. mounted - disobeying the
> x-systemd.requires=home.mount rule.
Yes, systemdm will create mount point if it does not exist. I am still
unsure whether this is a good thing.
> 192.168.11.10:/home /home nfs
> 0 0
systemd already adds dependency on network-online.target to network
mounts. But do not forget that you need something that actually
implements waiting for network, otherwise this requirement is
> LABEL=pc11root /home/leander/.cache btrfs
> 0 0
systemd adds equivalent to RequiresMountsFor=mount-point so
x-systemd.requires here is redundant.
> How to fix?
Try adding _netdev to each mount that depends on /home to order them
systemd-devel mailing list