Bug#746358: Boot hangs if fstab contains NFS entries

Jason Alavaliant alavaliant at ra09.com
Sat Jun 7 23:37:26 BST 2014


I've just tested the latest initscripts package (2.88dsf-53.1)

Unfortunately the lines in adds to /etc/network/if-up.d/mountnfs ;

------------------
# Skip the mountnfs hook when being triggered by the networking SysV init
# script and instead use the systemd built-in mechanisms to mount remote
# file systems.
# This avoids a deadlock caused by the rpcbind SysV init script depending
# on $network and the $network LSB facility being provided by the networking
# SysV init script.
if [ -d /run/systemd/system ]; then
       systemctl list-jobs | grep -q network.target && exit 0
fi
-----------------

Do not fix the problem for me and my boot started sitting on configuring network interfaces again
(I only waited 5minutes before giving up,  so I'm unsure if it was just being very slow or if it would never have completed)

I ended up swapping out the above lines for
-------------------
if [ -d /run/systemd/system ] ; then
        systemctl status network.target > /dev/null || exit 0
fi
-------------------
the same as I'd been using after a previous suggestion in this bug,   they continues to work and my system now finishes
configuring network interfaces and boots successfully again.



More information about the Pkg-systemd-maintainers mailing list