Author: aitor Date: To: dng Subject: Re: [DNG] Beowulf Beta is here!
On 9/4/20 18:16, Didier Kryn wrote: > Le 09/04/2020 à 16:13, dal a écrit :
>> Hello and thanks for Beowulf.
>> An issue:
>> it looks like
>> and the base system installable from it
>> do not contain the ifupdown package (nor other networking utilities
>> besides busybox ip?).
>> The resulting base installation remains offline.
>> This is a more limited definition of a "base system" than it used to
>> be, most probably unintentionally.
> I remember this was also the case in a previous version, wether
> Jessie or Ascii. Obviously this isn't an issue when upgrading. I also
> remind you that the startup delay caused by the timed-out activation
> of the Ethernet interface (when not plugged in) is still there with
> the default interfaces file. The solution is to remove the clause
> "allow-hotplug eth0" and install ifupdown or the equivalent I have
> forgotten the name of.
The origin of the startup delay is in the lock_interface() function of
ifupdown in the main.c file:
between the lines nº196-209, surely because ifupdown is trying to lock
both wired and wireless devices
at the same time that some dhcp client (isc-dhcp-client, dhcpcd5,
udhcpc...) is trying to connect (in vain) to some of them,
being these resources busy. The C function used during the lock attempts
is *fcntl* which uses the following macros:
Macro: /int/ *F_SETLK*
whose error conditions are defined by EACCES in GNU/Linux and
EAGAIN in GNU/Hurd.
Macro: /int/ *F_SETLKW (= F_SETLK + Wait)
which causes the process to block (or wait) until the request can be
specified (line nº199 in main.c).