Package: initramfs-tools Version: 0.130 Dear Maintainer,
I was using initramfs-tools with dropbear-initramfs on stretch and discovered that configure_networking would always set up DHCP on the wrong network interface, even if DEVICE= was set in /etc/initramfs-tools/initramfs.conf. (It would try both, succeed on the faster-responding DHCP server for the interface I didn't want, then give up on the other.) I tracked this down to a lack of `export DEVICE=` in /usr/share/initramfs-tools/init, causing DEVICE to be unset in configure_networking. I have attached a patch. I tested it on stretch and confirmed that a DEVICE= in /etc/initramfs-tools/initramfs.conf set up DHCP on the corresponding interface. Thanks, Ivan
From 5a9dd1aa2faefc89d2566cc29eb7f8c2b4c7e2cf Mon Sep 17 00:00:00 2001 From: Ivan Kozik <i...@ludios.org> Date: Wed, 6 Dec 2017 09:35:36 +0000 Subject: [PATCH] init: export DEVICE so that when configured, it is actually set in configure_networking --- init | 1 + 1 file changed, 1 insertion(+) diff --git a/init b/init index 1334dca..8f64b6f 100755 --- a/init +++ b/init @@ -45,6 +45,7 @@ export ROOTDELAY= export ROOTFLAGS= export ROOTFSTYPE= export IP= +export DEVICE= export BOOT= export BOOTIF= export UBIMTD= -- 2.11.0