Edit:
Thanks, the
auto eth0 in /etc/network/interfaces
works.
Now to find a way to fix this in the installer .iso
]]>auto eth0
iface eth0 inet dhcp
Yes, you can use an installation iso as a (limited) rescue system for an installed system. Just start the installation and use ctrl-alt-f2 at the very first dialog. That brings you to a command line, where you can mount the installed root partition onto /mnt, and then chroot into that for various hands-on.
]]>I have not had this problem before, with older versions.
Edit:
I booted with a rescue-cd and modified the file etc/network/interfaces
Now it boots, but I get no IP, (state DOWN)
This is very inconvenient.
edit:
/sbin/ifconfig eth0 up
dhclient
gave me an IP.
How to fix this, so it will get an IP on boot, like normal?
]]>--- /etc/init.d/networking 2019-07-07 12:05:57.696076136 +0200
+++ /etc/init.d/networking 2019-07-07 12:11:41.412092526 +0200
@@ -14,6 +14,7 @@
IFSTATE="$RUN_DIR/ifstate"
STATEDIR="$RUN_DIR/state"
+[ -x /sbin/ip ] || exit 0
[ -x /sbin/ifup ] || exit 0
[ -x /sbin/ifdown ] || exit 0
@@ -107,7 +108,12 @@
link=${link##.*}
if [ -e "/sys/class/net/$link" ]
then
- echo "$iface"
+ # link detection does not work unless we up the link
+ ip link set "$iface" up || true
+ if [ "$(cat /sys/class/net/$link/operstate)" = up ]
+ then
+ echo "$iface"
+ fi
fi
done)
if [ -n "$ifaces" ]
I am not too good at some of the scoping in some of these languages, but I think that in this patch that $iface and $link are not defined when we get to use them. I think that $ifaces is defined and in my case I only have one interface with allow-hotplug, so putting $ifaces in this patch seems to work for me, although probably not strictly correct.
Geoff
]]>I don't know if the line numbers in the patch are still correct, but I do know that it works in ascii. I've applied it manually.
Le 22/12/2017 à 08:49, KatolaZ a écrit :
> On Fri, Dec 22, 2017 at 08:40:37AM +0100, Didier Kryn wrote:
>> Hello.
>>
>> I've now switched to ASCII for my personal laptop (amd-64 arch) and I
>> found it working well, better for me than Jessie.
> Hi Didier,
>
> that's pretty good news
>
> [cut]
>
>> A regression with respect to the older releases of Debian and Devuan is
>> the new /etc/init.d/networking script. I have sent on the list a patch to
>> correct this file. I aso had to change /etc/interfaces: previously I had
>> "allow-hotplug wlan0"; now I still have it, plus "auto wlan0", otherwise
>> wlan0 is not always started at boot time. This ifpudown logic is rather
>> convoluted and I fall down to this kind of tricks.
>>
> Could you please send a patch to /etc/init.d/networking (it's very
> difficult to retrieve it from the ML)? I am not looking forward to
> fork ifupdown, to be honest. It would be better maybe to submit the
> patch upstream (i.e., to Debian).
Seems the patch introducing the regression is from the author, not from Debian. It is in the form of a patch in the source of the package, but I didn't find where this patch is applied. Maybe, as suggested by Svante, I should modify the patch so that it changes the behaviour only if systemd is installed, and propose this modification to the author.Didier
check-link-state.patch
--- networking~ 2016-09-16 15:02:20.000000000 +0200
+++ networking 2017-12-18 17:25:49.902781233 +0100
@@ -112,7 +112,12 @@ ifup_hotplug () {
done)
if [ -n "$ifaces" ]
then
- ifup $ifaces "$@" || true
+ # link detection does not work unless we up the link
+ ip link set "$iface" up || true
+ if [ "$(cat /sys/class/net/$link/operstate)" = up ]
+ then
+ echo "$iface"
+ fi
fi
fi
}
This affects only wireless network connections from my experience. Wired isn't affected.
Hello. I am on wired connection. I do not have wireless connection. It is a desktop.
]]>The fix is shown above, and it has worked for me for months and months. I include this fix in MiyoLinux releases also. As root, open the file /etc/network/interfaces
Save a copy of that file (before editing it) somewhere just in case you need to put it back.
You can comment out lines if you prefer, but I personally remove everything in that file and leave only the following two lines...
auto lo
iface lo inet loopback
Save the file. Close it. Then reboot. The delay should be gone,
]]>This behavior also exhibits in my laptop: a long ifup eth0 wait with the 'allow-hotplug eth0' line in etc/network/interfaces
It seems to be a known Debian bug as well:
]]>The contents before the modification:
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
source /etc/network/interfaces.d/*
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
allow-hotplug eth0
iface eth0 inet dhcp
The file contents after the modification (the fix):
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
source /etc/network/interfaces.d/*
# The loopback network interface
auto lo
iface lo inet loopback