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 <koleygr@gmail.com>; Keywords: moreinfo; dated Fri, 15 Mar 2019 14:03:01 UTC; Maintainer for sysvinit is Devuan Developers <devuan-dev@lists.dyne.org>.
Added tag(s) moreinfo. Request was from Mark Hindley <mark@hindley.org.uk> to 307-submit@bugs.devuan.org. Full text available.

Message received at 307@bugs.devuan.org:


Received: (at 307) by bugs.devuan.org; 7 Apr 2020 14:40:11 +0000
Return-Path: <mark@hindley.org.uk>
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); 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 <307@bugs.devuan.org>; 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 <mark@hindley.org.uk>)
	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 <mark@hindley.org.uk>)
	id 1jLpJv-00012Z-9T; Tue, 07 Apr 2020 15:35:19 +0100
Date: Tue, 7 Apr 2020 15:35:19 +0100
From: Mark Hindley <mark@hindley.org.uk>
To: 307@bugs.devuan.org
Cc: Kostis Leledakis <koleygr@gmail.com>
Subject: Re: Configuring network interfaces during boot takes too much
 time.(if ethernet cable not connected or no signal)
Message-ID: <20200407143519.GZ4674@hindley.org.uk>
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 <koleygr@gmail.com> 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 devuan-bugs@lists.dyne.org, Devuan Developers <devuan-dev@lists.dyne.org>:
bug#307; Package sysvinit. Full text available.

Message received at submit@bugs.devuan.org:


Received: (at submit) by bugs.devuan.org; 15 Mar 2019 14:00:03 +0000
Return-Path: <koleygr@gmail.com>
Delivered-To: devuanbugs@dyne.org
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 <submit@bugs.devuan.org>; 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 header.i=@gmail.com header.b="d6ANFOtx";
	dkim-atps=neutral
Received: by mail-pg1-f173.google.com with SMTP id h8so6539476pgp.6
        for <submit@bugs.devuan.org>; 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 <koleygr@gmail.com>
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: submit@bugs.devuan.org
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 <koleygr@gmail.com>:
New bug report received and forwarded. Copy sent to owner@bugs.devuan.org. Full text available.
Report forwarded to devuan-bugs@lists.dyne.org, owner@bugs.devuan.org:
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 <owner@bugs.devuan.org>.
Last modified: Sun, 5 Jul 2020 16:39:01 UTC