Fix leading space in DEVICE setting
authorBenjamin Drung <benjamin.drung@profitbricks.com>
Tue, 4 Aug 2020 09:43:06 +0000 (11:43 +0200)
committerBenjamin Drung <benjamin.drung@profitbricks.com>
Tue, 4 Aug 2020 09:43:06 +0000 (11:43 +0200)
commit56ec826fbe66584bb41d3b0460aec362886f14c3
treef6e052f89e03ca71468b85b501b9a08deb0e8b72
parent24f24527072efedbdb4f689a0f5253534aa403e5
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 <benjamin.drung@profitbricks.com>
components/9990-select-eth-device.sh