Devuan bug report logs - #307
Configuring network interfaces during boot takes too much time.(if ethernet cable not connected or no signal)

Package: sysvinit; Reported by: Kostis Leledakis <[email protected]>; Keywords: moreinfo; Done: Arne Wichmann <[email protected]>; Maintainer for sysvinit is Devuan Developers <[email protected]>.

Message received at [email protected]:


Received: (at 307-done) by bugs.devuan.org; 10 Nov 2023 19:10:32 +0000
Return-Path: <[email protected]>
Delivered-To: [email protected]
Received: from email.devuan.org [2a01:4f8:140:32a1::58c6:6473]
	by doc.devuan.org with IMAP (fetchmail-6.4.16)
	for <debbugs@localhost> (single-drop); Fri, 10 Nov 2023 19:10:32 +0000 (UTC)
Received: from email.devuan.org
	by email.devuan.org with LMTP
	id mwYBEvJ/TmWgMgAAmSBk0A
	(envelope-from <[email protected]>)
	for <[email protected]>; Fri, 10 Nov 2023 19:09:38 +0000
Received: by email.devuan.org (Postfix, from userid 109)
	id 3CF9765E; Fri, 10 Nov 2023 19:09:38 +0000 (UTC)
X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on email.devuan.org
X-Spam-Level: 
X-Spam-Status: No, score=-0.0 required=5.0 tests=SPF_PASS autolearn=ham
	autolearn_force=no version=3.4.6
Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=5.199.139.22; helo=arnium.elogos.de; [email protected]; receiver=<UNKNOWN> 
Received: from arnium.elogos.de (arnium.elogos.de [5.199.139.22])
	by email.devuan.org (Postfix) with ESMTPS id 74D8A27
	for <[email protected]>; Fri, 10 Nov 2023 19:09:37 +0000 (UTC)
Received: from [192.168.3.66] (helo=anhrefn.saar.de)
	by arnium.elogos.de with esmtp (Exim 4.96)
	(envelope-from <[email protected]>)
	id 1r1Wys-0007Nq-1T
	for [email protected];
	Fri, 10 Nov 2023 20:15:50 +0100
Received: from aw by anhrefn.saar.de with local (Exim 4.97-RC3)
	(envelope-from <[email protected]>)
	id 1r1Wpf-000000003U8-45GH
	for [email protected];
	Fri, 10 Nov 2023 20:06:19 +0100
Date: Fri, 10 Nov 2023 20:06:19 +0100
From: Arne Wichmann <[email protected]>
To: [email protected]
Subject: bug #307 closing - no info for 3 years
Message-ID: <[email protected]>
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha256;
	protocol="application/pgp-signature"; boundary="mZdDAiz8s1n6AVvv"
Content-Disposition: inline
X-message-flag: Outluck ist kaputt :-)
Return-Receipt-To: [email protected]


--mZdDAiz8s1n6AVvv
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Please reopen this bug if it is still relevant.

cu

AW
--=20
[...] 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 protected])

--mZdDAiz8s1n6AVvv
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQIzBAABCAAdFiEEtFUkbndwdIn81UX3EIremXYA/4kFAmVOfysACgkQEIremXYA
/4miEQ//RrvAq+CGvv2L8f0eCUlEEmHhsRKuT3jUC3d5yhUV2CvAUWvISyxb5zxt
uu+6+AVnsM1/Zp1skEjgc5ZcX0t/XESEbresAHIgnTo1jdHTAk7w5dMvZ0rsRnI3
lnxbcO/9UMO77bDdfh7wjczucT/MPHg77EROgq4QfrqlkYXd7W0Vv0DoW3bqd90p
u+oNRPLEnni6Hu9+7uUbCACzCaJSnfWnyvsqXr1yoYnOkhAdtj3Lt1A0qS+8lxL7
xPg/p5GnO4n0VZuF+4kElI2MThhHIxwmficvVh7eCwJA2jhvVG4w5Gm5d0ZYSOJb
GqOY8YSm4PXjL9cpaykSb/TdY3rp0+b2z8ROvQkKPv/DXpswhQ9GCFuk0jrisiz7
mlNWQQ+/z0VClpDqNvQejeMy9bOszW0amRt6yxU7Pk+dx/gzYNMQBA89xAFv7xR5
mkhsM1DNPRaLrGC1QCbYJ+2cecUesFo39qrOKdN9GRUncUHLXih0V3Lin6hx9w/+
RP77f35cXEYEWBep086oTdsTfyX+3aOeVFzLfFCc1uqv8bB+FHy0hgf4ZsSSUiS2
mqucdrVgVxIZyBiG86m575mIbxL2v1Rq5r2S4Q/JRpj0+4kibsWPZ2oEq5zCQrk7
vOSG9ZMe5QrLCOjNQwcz+GwibfuLf/AEDTMu1iXW130MiPkAmsM=
=uR+s
-----END PGP SIGNATURE-----

--mZdDAiz8s1n6AVvv--

Notification sent to Kostis Leledakis <[email protected]>:
bug acknowledged by developer. Full text available.
Reply sent to Arne Wichmann <[email protected]>:
You have taken responsibility. Full text available.
Added tag(s) moreinfo. Request was from Mark Hindley <[email protected]> to [email protected]. Full text available.

Message received at [email protected]:


Received: (at 307) by bugs.devuan.org; 7 Apr 2020 14:40:11 +0000
Return-Path: <[email protected]>
Delivered-To: [email protected]
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); Tue, 07 Apr 2020 14:40:10 +0000 (UTC)
Received: from mx.hindley.org.uk (mohindley.plus.com [81.174.245.179])
	(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
	(No client certificate requested)
	by vm6.ganeti.dyne.org (Postfix) with ESMTPS id 5A0E5F6093C
	for <[email protected]>; Tue,  7 Apr 2020 16:35:21 +0200 (CEST)
Received: from apollo.hindleynet ([192.168.1.3] helo=apollo)
	by mx.hindley.org.uk with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
	(Exim 4.84_2)
	(envelope-from <[email protected]>)
	id 1jLpJw-0002Sl-2s; Tue, 07 Apr 2020 15:35:20 +0100
Received: from mark by apollo with local (Exim 4.84_2)
	(envelope-from <[email protected]>)
	id 1jLpJv-00012Z-9T; Tue, 07 Apr 2020 15:35:19 +0100
Date: Tue, 7 Apr 2020 15:35:19 +0100
From: Mark Hindley <[email protected]>
To: [email protected]
Cc: Kostis Leledakis <[email protected]>
Subject: Re: Configuring network interfaces during boot takes too much
 time.(if ethernet cable not connected or no signal)
Message-ID: <[email protected]>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <CAE4Op1q+Xd1WSzr_wDsEWHGL9bTAxQjWrB5rf6FtvXhszEP4Ww@mail.gmail.com>
X-Debbugs-No-Ack: No Thanks
User-Agent: Mutt/1.5.23 (2014-03-12)
X-Spam-Status: No, score=0.0 required=5.0 tests=FAKE_REPLY_C,SPF_PASS
	autolearn=disabled version=3.4.2
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on tupac3.dyne.org

Control: tags -1 moreinfo

On Fri, 15 Mar 2019 15:59:32 +0200 Kostis Leledakis <[email protected]> wrote:
> Package: sysvinit
> Version: 2.88dsf-59.9 amd64

Kostis,

Thanks for this and sorry for the slow reply.

I am glad you found a workaround. 

It seems to me this is really a problem with ifupdown, or perhaps eudev.

Which versions of those pacakges do you have?

ifupdown is not a forked package, Devuan uses Debian's packages directly.

There are a number of bug reports on Debian's BTS [1] relating to hangs at
boot. Perhaps you could review them and see if any are directly relevant.

Thanks

Mark

[1]  https://bugs.debian.org/cgi-bin/pkgreport.cgi?src=ifupdown


Information forwarded to [email protected], Devuan Developers <[email protected]>:
bug#307; Package sysvinit. Full text available.

Message received at [email protected]:


Received: (at submit) by bugs.devuan.org; 15 Mar 2019 14:00:03 +0000
Return-Path: <[email protected]>
Delivered-To: [email protected]
Received: from tupac3.dyne.org [195.169.149.119]
	by fulcanelli with IMAP (fetchmail-6.3.26)
	for <debbugs@localhost> (single-drop); Fri, 15 Mar 2019 15:00:03 +0100 (CET)
Received: from mail-pg1-f173.google.com (mail-pg1-f173.google.com [209.85.215.173])
	(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
	(No client certificate requested)
	by vm6.ganeti.dyne.org (Postfix) with ESMTPS id AA37FF6095F
	for <[email protected]>; Fri, 15 Mar 2019 14:59:36 +0100 (CET)
Authentication-Results: vm6.ganeti.dyne.org;
	dkim=pass (2048-bit key; unprotected) header.d=gmail.com [email protected] header.b="d6ANFOtx";
	dkim-atps=neutral
Received: by mail-pg1-f173.google.com with SMTP id h8so6539476pgp.6
        for <[email protected]>; Fri, 15 Mar 2019 06:59:36 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20161025;
        h=mime-version:from:date:message-id:subject:to;
        bh=t0QNypsuTBaWLc+z9IiR+xsvRFNazDl5tJ8Yj95vsVg=;
        b=d6ANFOtx30hWu2JyHGpk3CAPqiwxi1WMMIbgz9TwLao1eV/gHSIezFR3xgkw047XhY
         a5HF9BVDZAY0U7R4NNxLtOKuMPOrbFt8L8TXT01DiVeCCXsdzj09Ip993yLPwg4KEJlP
         OUkVTQll2X5WKaMOWu21SskZTbv0/q87JaADYKf4og4SkZrUYwBza06GuSdycF0FHanZ
         nxPJdDwJrYvsnY0pqJJGxPlBKar8d8krpcOd+bcZqBiJgBdn+j9Yox5fDlNqaQ3PmTNd
         Pd2H1cydKTe2WmzSYSRZ/AxjLMSdsWwuqE/FgV/bCrbETqjcvDqYM8S6fnOBQgFftO5H
         M/xA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20161025;
        h=x-gm-message-state:mime-version:from:date:message-id:subject:to;
        bh=t0QNypsuTBaWLc+z9IiR+xsvRFNazDl5tJ8Yj95vsVg=;
        b=O2JQrLp92V+w0xPpPEuNqYOFuNHazEXoNC3pltZ41/0xzfmqkSqYIPS2vCJC7awzq3
         U4wgJEW4J/aolpnbbbhTNivlkQSdMIknBRN2bOFm34PhzlxhfkvqqRZBLKp2qyvqRxnq
         0G15lbp7fKfiX8Rwi4KnpfcoZBCMnBHJpG0zq0qldQDUEW5JcLwUJ0W5P13yLrAErjUB
         u+8WioacLGB2Jg8SsmrwrcC5KP5rXKjxmnKPH2dvz/qfZ/6G8xRzNgYKpvLqmSV1nIhw
         HxL+TQpBuQsjqAHBaoQlM5UkYsyRAe8300aOhW3pt+u5Cn+FMdIkGA/uLOiI1BE7YP2G
         mDyg==
X-Gm-Message-State: APjAAAVvRQwwJG0IkrJqv0HKHZTypp2gkEUTIOWH7WRYv7xjBqgHnt7W
	Jd3R+epSHhmJF2DQOLG8JnUPrLfQqg5GBuh/+EL5Bg==
X-Google-Smtp-Source: APXvYqytjVf8PqNyK4J47AOrNcooPAB6vvXASGz2dzhRSF9lh21faqVfsr0LvbBnJqf6rw2cCoOcPBELruahsVWnO5c=
X-Received: by 2002:a63:6fc4:: with SMTP id k187mr3652021pgc.312.1552658373911;
 Fri, 15 Mar 2019 06:59:33 -0700 (PDT)
MIME-Version: 1.0
Received: by 2002:a17:90a:9295:0:0:0:0 with HTTP; Fri, 15 Mar 2019 06:59:32
 -0700 (PDT)
From: Kostis Leledakis <[email protected]>
Date: Fri, 15 Mar 2019 15:59:32 +0200
Message-ID: <CAE4Op1q+Xd1WSzr_wDsEWHGL9bTAxQjWrB5rf6FtvXhszEP4Ww@mail.gmail.com>
Subject: Configuring network interfaces during boot takes too much time.(if
 ethernet cable not connected or no signal)
To: [email protected]
Content-Type: text/plain; charset="UTF-8"
X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID,
	DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,
	RCVD_IN_MSPIKE_H2,SPF_PASS autolearn=disabled version=3.4.2
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on tupac3.dyne.org

Package: sysvinit
Version: 2.88dsf-59.9 amd64

During installation I have configured your network interfaces just
through ethernet and have no wifi available on my laptop. The bug is
that during every boot the OS is looking to configure my network
interfaces (and this is good but)... If my ethernet cable is unplugged
or if I have no (or bad) signal on my ethernet the boot becomes too
slow (I have to wait more than 10-15 seconds just for the OS to
realize there is not signal on my cable or even that the cable is not
even plugged in).

Sometimes I don't want to use internet, and/or I have not available
cable to plug in during the installation and this non-reasoned delay
is really annoying.

I asked about that problem in unix.stackexchange.com and got a great
answer that fixed the problem from the member @A.B there.

The answer is to configure my /etc/network/interfaces file to be like:

allow-hotplug eth0
iface eth0 inet dhcp
    pre-up ip link set eth0 up && sleep 1
    pre-up [ $(cat /sys/class/net/eth0/carrier) -eq 1 ]
iface eth0 inet6 auto
    pre-up ip link set eth0 up && sleep 1
    pre-up [ $(cat /sys/class/net/eth0/carrier) -eq 1 ]

You can find the answer and the question here:
https://unix.stackexchange.com/a/503306/237337

I am not sure witch package should configure this file during
installation and not even if there is a package that deals with this
configuration file but this seems more relative to me after a question
I made about it before filling this bug.

If this fix is working (and for me it does and seems really clever)
next releases should take care of this case and use a similar aproach
during network configuration on boot.

Thanks.

PS: If this bug have positive feedback from devuan developers, I
suppose that other distros should adapt their final fix and methods.


Acknowledgement sent to Kostis Leledakis <[email protected]>:
New bug report received and forwarded. Copy sent to [email protected]. Full text available.
Report forwarded to [email protected], [email protected]:
bug#307; Package sysvinit. Full text available.

Devuan BTS -- Powered by Debian bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.

Devuan Bugs Owner <[email protected]>.
Last modified: Sat, 18 Jan 2025 04:39:02 UTC