grml / live-boot-grml

GNU General Public License v3.0
10 stars 12 forks source link

Update 9990-select-eth-device.sh for multiple network devices with UEFI #16

Closed ThomasToka closed 1 year ago

ThomasToka commented 1 year ago

Update live-netdev to alternatively use a given mac address for the active network device.

Background: Legacy has IPAPPEND 2 to force a device in grml. UEFI does not have this mechanism. So we need an alternative for machines with mulitple network devices. Some motherboards swap the device names so eth0 becomes eth1. And then the live-netdev=eth0 fails.

It takes the mac, checks which device name this mac has and uses the device name then to fire up the network connection.

format is "live-netdev=xx:xx:xx:xx:xx:xx"

This patch was developed by Thomas Toka / Serverman Webhosting.

Thanks to @mika for the hints to find the relevant code.

mika commented 1 year ago

Sorry for taking so long to actually take care of it, thanks for your PR! Just merged and will be uploaded soonish, so Grml daily ISOs as of 2023-09-09 should include it! Thanks again! :+1: