<div>Hi there,<br></div><div><br></div><div>I initially created a bug report for this topic (apologize, Lennart), but would like to discuss this topic in mode detail here (as suggested by Lennart), and really appreciate your opinion here,<br></div><div><br></div><div>I've seen that once you define network (NFS) mount together with local (referring to that network (NFS) mount) mount in `/etc/fstab` then it will always produce dependency loops (due to `local-fs.target`),<br></div><div><br></div><div>Details and how to reproduce it,<br></div><div><br></div><div>                # systemctl --version<br></div><div>                systemd 219<br></div><div>                +PAM +AUDIT +SELINUX +IMA -APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ -LZ4 -SECCOMP +BLKID +ELFUTILS +KMOD +IDN<br></div><div><br></div><div>                # cat /etc/*release<br></div><div>                CentOS Linux release 7.4.1708 (Core)<br></div><div>                NAME="CentOS Linux"<br></div><div>                VERSION="7 (Core)"<br></div><div>                ID="centos"<br></div><div>                ID_LIKE="rhel fedora"<br></div><div>                VERSION_ID="7"<br></div><div>                PRETTY_NAME="CentOS Linux 7 (Core)"<br></div><div>                ANSI_COLOR="0;31"<br></div><div>                CPE_NAME="cpe:/o:centos:centos:7"<br></div><div>                HOME_URL="<a href="https://www.centos.org/">https://www.centos.org/</a>"<br></div><div>                BUG_REPORT_URL="<a href="https://bugs.centos.org/">https://bugs.centos.org/</a>"<br></div><div><br></div><div>                CENTOS_MANTISBT_PROJECT="CentOS-7"<br></div><div>                CENTOS_MANTISBT_PROJECT_VERSION="7"<br></div><div>                REDHAT_SUPPORT_PRODUCT="centos"<br></div><div>                REDHAT_SUPPORT_PRODUCT_VERSION="7"<br></div><div><br></div><div>                CentOS Linux release 7.4.1708 (Core)<br></div><div><br></div><div>        ### Expected behaviour you didn't see<br></div><div><br></div><div>                All local mounts (dependencies) are defined for `local-fs.target` with `Wants` parameter.<br></div><div><br></div><div>        ### Unexpected behaviour you saw<br></div><div><br></div><div>                All local mounts are defined for `local-fs.target` with `Requires` parameter instead of `Wants` parameter.<br></div><div><br></div><div>        ### Steps to reproduce the problem<br></div><div><br></div><div>                1. Add NFS mount into `/etc/fstab`, example<br></div><div>                         ```server.domain:/      /mnt/test      nfs4 nfsvers=4.1,rsize=1048576,wsize=1048576,hard,timeo=600,retrans=2 0 0```<br></div><div>                2. Add local mount with dependency on NFS mount, example,<br></div><div>                         ```/mnt/some_other_mount/     /mnt/test/media/      none bind,rw 0 0```<br></div><div><br></div><div>        Example of `/etc/fstab`,<br></div><div>                ```<br></div><div>                #<br></div><div>                # /etc/fstab<br></div><div>                # Created by anaconda on Mon Nov 27 22:04:35 2017<br></div><div>                #<br></div><div>                # Accessible filesystems, by reference, are maintained under '/dev/disk'<br></div><div>                # See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info<br></div><div>                #<br></div><div>                UUID=2f15c101-f516-4ee8-a4b7-89ad880610db /                       xfs     defaults        0 0<br></div><div><br></div><div>                server.domain:/         /mnt/test       nfs4  nfsvers=4.1,rsize=1048576,wsize=1048576,hard,timeo=600,retrans=2 0 0<br></div><div>                /mnt/some_other_mount/  /mnt/test/medi  none  bind,rw 0 0<br></div><div>                ```<br></div><div><br></div><div><br></div><div>Question,<br></div><div>I know that this issue with dependency loop on `local-fs.target` can be corrected by `nofail`/`_netdev` options in `/etc/fstab` file for all local shares (as then all local mounts will be only wanted (`Wants` parameter), and not required (`Requires` parameter) by `local-fs.target), but my question is about behavior without these options specified, do you think that this (explained) behavior is correct?<br></div><div><br></div><div>This looks for me as quite dangerous behavior (without `nofail`/`_netdev` options) since in this scenario we may delete start jobs for up to 10 different services/targets (including network stack (`network.service`)), here is the full list of possible services/targets which may never start due to this issue (ordering cycle (loop)),<br></div><div><br></div><div>        systemd-journal-catalog-update.service<br></div><div>        systemd-machine-id-commit.service<br></div><div>        systemd-tmpfiles-setup.service<br></div><div>        rhel-import-state.service<br></div><div>        systemd-update-done.service<br></div><div>        auditd.service<br></div><div>        network.service<br></div><div>        nfs-config.service<br></div><div>        local-fs.target<br></div><div><br></div><div>Thanks a lot in advance!<br></div><div><br></div><div class="protonmail_signature_block"><div class="protonmail_signature_block-user"><div>Kind regards,<br></div><div>Alexey<br></div></div></div><div><br></div>