Bug#746358: systemd: system boot hangs if /etc/network/interfaces contains a bridge interface
Jason Alavaliant
alavaliant at ra09.com
Wed Apr 30 12:01:28 BST 2014
On 30/04/14 01:10, Michael Biebl wrote:
> Am 29.04.2014 13:10, schrieb Jason Alavaliant:
>> On 2014-04-29 22:36, Michael Biebl wrote:
>>> Am 29.04.2014 11:31, schrieb Jason Alavaliant:
>>> Do you have an NFS / remote fs configuration in your /etc/fstab?
>> Yes I've got a nfs4 mounted home directory
>> server.local:/ /home nfs4 defaults 0 0
> I suspect the hang to be caused by the NFS fstab entry. Can you comment
> out the entry and reboot so we have confirmation?
>
> If so, can you please try the following patch for
> /etc/network/if-up.d/mountnfs with the NFS mount re-enabled.
>
> --- a/network/if-up.d/mountnfs
> +++ b/network/if-up.d/mountnfs
> @@ -7,6 +7,10 @@
> # Also mounts SMB filesystems now, so the name of
> # this script is getting increasingly inaccurate.
>
> +if [ -d /run/systemd/system ] ; then
> + systemctl status network.target > /dev/null || exit 0
> +fi
> +
> PATH=/sbin:/bin
> . /lib/init/vars.sh
>
>
>
I've tested as requested and can confirm that if I restored the bridge
interface lines in my /etc/network/interfaces but comment out the nfs
mount in my fstab then the system boots without hanging. (Interestingly
nfs mount in fstab doesn't cause a hang without the bridge network setup
being there as well so in my case it seems to require both factors
together to trigger the hang).
Booting with mountnfs patched while the nfs mount and bridged network
interface are in place also is successful so it looks like that patch
does indeed fix the problem.
Thank you for the quick fix.
-J
More information about the Pkg-systemd-maintainers
mailing list