Devuan bug report logs - #521
boot hangs on 'ifup: waiting for lock'

Package: devuan-desktop; Maintainer for devuan-desktop is Devuan Developers <devuan-dev@lists.dyne.org>;

Reported by: leirbag <leirbag@sdfeu.org>

Date: Wed, 11 Nov 2020 07:48:02 UTC

Severity: normal

Full log


Message #15 received at 521@bugs.devuan.org (full text, mbox, reply):

Received: (at 521) by bugs.devuan.org; 11 Nov 2020 13:50:04 +0000
Return-Path: <farmatito@tiscali.it>
Delivered-To: devuanbugs@dyne.org
Received: from tupac3.dyne.org [195.169.149.119]
	by doc.devuan.org with IMAP (fetchmail-6.4.0.beta4)
	for <debbugs@localhost> (single-drop); Wed, 11 Nov 2020 13:50:04 +0000 (UTC)
Received: from smtp.tiscali.it (michael-notr.mail.tiscali.it [213.205.33.216])
	by vm6.ganeti.dyne.org (Postfix) with ESMTP id E0BC1F60A34
	for <521@bugs.devuan.org>; Wed, 11 Nov 2020 14:44:57 +0100 (CET)
Authentication-Results: vm6.ganeti.dyne.org;
	dkim=pass (1024-bit key; unprotected) header.d=tiscali.it header.i=@tiscali.it header.b="kaCyLplD";
	dkim-atps=neutral
Received: from devuan ([217.27.115.45])
	by michael.mail.tiscali.it with 
	id r1ki2303K0yqAhV011kjCp; Wed, 11 Nov 2020 13:44:56 +0000
x-auth-user: farmatito@tiscali.it
Date: Wed, 11 Nov 2020 14:43:46 +0100
From: tito <farmatito@tiscali.it>
To: devuan-dev@lists.dyne.org, leirbag <leirbag@sdfeu.org>,
 521@bugs.devuan.org
Subject: Re: [devuan-dev] bug#521: boot hangs on 'ifup: waiting for lock'
Message-ID: <20201111144346.2700cdef@devuan>
In-Reply-To: <66e6c6cf59036097f0df1e91d172840a@mx.sdfeu.org>
References: <66e6c6cf59036097f0df1e91d172840a@mx.sdfeu.org>
X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tiscali.it; s=smtp;
	t=1605102297; bh=te7s8O5TE5eDV+gKSgPzXZZm01isAgLSUthYWfFOmV4=;
	h=Date:From:To:Subject:In-Reply-To:References;
	b=kaCyLplD/Ywf3Ns1BO6AlkD5Z16vtrWbwUql6Uj5lYF815BoZuShOTJXWTfocewMg
	 FraloJh9WEeU2bLno2dLb2CoXDJDj94UXhK9FDsyAHs16xJavnhn9lU21wY2WfZv0b
	 T1/nRgYRAd4+NfUs96HKvVMKuG+6KT2D+rFdoN/U=
X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID,
	DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,
	RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS autolearn=disabled
	version=3.4.2
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on tupac3.dyne.org
On Wed, 11 Nov 2020 08:31:50 +0100
leirbag <leirbag@sdfeu.org> wrote:

> 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

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

 

Send a report that this bug log contains spam.


Devuan BTS -- Powered by Debian bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson,
2005-2017 Don Armstrong, and many other contributors.

Devuan Bugs Owner <owner@bugs.devuan.org>.
Last modified: Sun May 5 16:30:20 2024;