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

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

Reported by: Kostis Leledakis <koleygr@gmail.com>

Date: Fri, 15 Mar 2019 14:03:01 UTC

Severity: normal

Tags: moreinfo

Done: Arne Wichmann <aw@anhrefn.saar.de>

Full log


🔗 View this message in rfc822 format

X-Loop: owner@bugs.devuan.org
Subject: bug#307: Configuring network interfaces during boot takes too much time.(if ethernet cable not connected or no signal)
Reply-To: Kostis Leledakis <koleygr@gmail.com>, 307@bugs.devuan.org
Resent-From: Kostis Leledakis <koleygr@gmail.com>
Resent-To: devuan-bugs@lists.dyne.org
Resent-CC: owner@bugs.devuan.org
Resent-Date: Fri, 15 Mar 2019 14:03:01 UTC
Resent-Message-ID: <handler.307.B.155265840321865@bugs.devuan.org>
Resent-Sender: owner@bugs.devuan.org
X-Devuan-PR-Message: report 307
X-Devuan-PR-Package: sysvinit
X-Devuan-PR-Keywords: 
Received: via spool by submit@bugs.devuan.org id=B.155265840321865
          (code B ref -1); Fri, 15 Mar 2019 14:03:01 UTC
Received: (at submit) by bugs.devuan.org; 15 Mar 2019 14:00:03 +0000
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>
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.


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: Fri Mar 29 11:38:50 2024;