[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#504753: debian-installer: autodetect correct network card [PATCH]

On Thu, Nov 06, 2008 at 08:49:49PM +0000, Adrian Bridgett wrote:
> Package: debian-installer
> using PXElinux, if you add "IPAPPEND=3" in the pxelinux.cfg,
> /proc/cmdline will contain the boot adapter's MAC address.
> Using this we can automatically detect which card the box PXEbooted
> from.  This removes the need for us to hardcode eth0 on some servers,
> eth1 on others, eth5 on yet others.
> I use the attached script (/bin/set-bootif) run from
> /lib/debian-installer-startup.d/S32set-bootif:
> #!/bin/sh
> /bin/set-bootif
This is a nice thing to have! Installations get difficult if not all
interfaces are usuable for installation (e.g. if they're crosslinks for

>       db_set netcfg/choose_interface $interface
>       # must mark question as seen otherwise you are reprompted
>       db_fset netcfg/choose_interface seen true
Isn't prompting o.k. here? Preselecting the correnct interface and
giving a message that this was autodetected might be better, because
folks might want to choose a different interface.
 -- Guido

Reply to: