Subject: bug#521: boot hangs on 'ifup: waiting for lock'

From: leirbag <[email-masked]>
Date: Wed, 11 Nov 2020 08:31:50 +0100

Package: devuan-desktop
Severity: normal

Dear Maintainer,

Booting process hangs on what seems to be the initialisation of network:
it remains on

Configuring network interfaces...ifup: waiting for lock on 
/run/network/ifstate.eth0

for a long time (I hence usually skip this phase with C-c). When logging
into the desktop, internet is available (through eth0).

The setup is very close to the default one (wicd is used).

-- System Information:
Distributor ID: Debian
Description:    Devuan GNU/Linux 3 (beowulf)
Release:        3
Codename:       beowulf
Architecture: x86_64

Kernel: Linux 4.19.0-12-amd64 (SMP w/4 CPU cores)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, 
TAINT_UNSIGNED_MODULE
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_GB:en (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)
LSM: AppArmor: enabled

---

From: leirbag <[email-masked]>
Date: Wed, 11 Nov 2020 09:19:20 +0100

Hi,

Section 5.2.1 of Debian Handbook suggests that wicd might conflict with 
ifup, and hence advise to keep the file /etc/network/interfaces as 
simple as possible, such as

auto lo
iface lo inet loopback

or disable wicd and let ifup do the work. Perhaps the default 
/etc/network/interfaces should be changed?

-- My /etc/network/interfaces:
source /etc/network/interfaces.d/*

auto lo
iface lo inet loopback

allow-hotplug eth0
iface eth0 inet dhcp
iface eth0 inet6 auto

---

From: tito <[email-masked]>
Date: Wed, 11 Nov 2020 14:43:46 +0100

On Wed, 11 Nov 2020 08:31:50 +0100
leirbag <[email-masked]> wrote:

> Package: devuan-desktop
> Severity: normal
> 
> Dear Maintainer,
> 
> Booting process hangs on what seems to be the initialisation of
> network: it remains on
> 
> for a long time (I hence usually skip this phase with C-c). When
> logging into the desktop, internet is available (through eth0).
> 

Hi,
I worked around this by changing /etc/network/interfaces to:

______________________________________________________________
iface eth0 inet manual
        pre-up /sbin/ip link set eth0 up
        up /sbin/dhclient -nw -4 -v -i -pf /run/dhclient.eth0.pid -lf /var/lib/dhcp/dhclient.eth0.leases -I -df /var/lib/dhclient6.eth0.leases eth0
        pre-down /sbin/dhclient -r -4 -v -i -pf /run/dhclient.eth0.pid -lf /var/lib/dhcp/dhclient.eth0.leases -I -df /var/lib/dhclient6.eth0.leases eth0
        down /sbin/ip link set eth0 down
______________________________________________________________

and installing ifplugd and setting /etc/default/ifplugd to:

______________________________________________________________
INTERFACES="eth0"
HOTPLUG_INTERFACES=""
ARGS="-q -f -u0 -d10 -w -I"
SUSPEND_ACTION="stop"
______________________________________________________________

This way boot is fast and the network is setup in the background 
as soon as ifplugd detects the link beat.
Don't know how this will interact with wicd.

Ciao,
Tito

---

From: Arne Wichmann <[email-masked]>
Date: Wed, 16 Jul 2025 20:05:37 +0200

tags 521 + moreinfo
quit

Does the machine receive an answer to the dhcp requests? If not the
behaviour is the expected one.

cu

YPl
-- 
[...] If you don't want to be restricted, don't agree to it. If you are
coerced, comply as much as you must to protect yourself, just don't support
it. Noone can free you but yourself. (crag, on Debian Planet)
Y Plentyn ([email-masked])