From: Benjamin Drung Date: Tue, 4 Aug 2020 09:43:06 +0000 (+0200) Subject: Fix leading space in DEVICE setting X-Git-Tag: debian/1%20210122~5^2 X-Git-Url: http://git.grml.org/?p=live-boot-grml.git;a=commitdiff_plain;h=56ec826fbe66584bb41d3b0460aec362886f14c3 Fix leading space in DEVICE setting live-boot will set the `DEVICE` parameter in `/conf/param.conf`. This parameter specifies the default network interface to use, like eth0. So only one Ethernet device is allowed here, but live-boot generates a list with a leading space. For example it will set `DEVICE=' eth0'`. This causes initramfs script relying on `DEVICE` fail. Therefore just set the `DEVICE` parameter to the last connected interface found. Signed-off-by: Benjamin Drung --- diff --git a/components/9990-select-eth-device.sh b/components/9990-select-eth-device.sh index c8f36b0..09642c8 100755 --- a/components/9990-select-eth-device.sh +++ b/components/9990-select-eth-device.sh @@ -91,7 +91,7 @@ Select_eth_device () 1) echo "Connected $interface found" # inform initrd's init script : - found_eth_dev="$found_eth_dev $interface" + found_eth_dev="$interface" ;; esac done