[arch-releng] [PATCH 3/4] fall back to ipconfig output for boot interface

Christian Hesse list at eworm.de
Fri May 27 17:57:08 UTC 2016


Gerardo Exequiel Pozzi <vmlinuz386 at gmail.com> on Fri, 2016/05/27 13:53:
> On 05/26/16 18:53, Christian Hesse wrote:
> > From: Christian Hesse <mail at eworm.de>
> > 
> > Signed-off-by: Christian Hesse <mail at eworm.de>
> > ---
> >  archiso/initcpio/hooks/archiso_pxe_common | 6 ++++++
> >  1 file changed, 6 insertions(+)
> > 
> > diff --git a/archiso/initcpio/hooks/archiso_pxe_common
> > b/archiso/initcpio/hooks/archiso_pxe_common index cedf585..adadefc 100644
> > --- a/archiso/initcpio/hooks/archiso_pxe_common
> > +++ b/archiso/initcpio/hooks/archiso_pxe_common
> > @@ -39,6 +39,12 @@ run_hook () {
> >  
> >          pxeserver=${ROOTSERVER}
> >  
> > +	# If neither BOOTIF nor bootif_mac have been set from bootloader
> > we do
> > +       # not know the boot interface, yet. Get it from ipconfig output
> > now.
> > +	if [[ -z "${bootif_dev}" ]]; then
> > +		bootif_dev="${DEVICE}"
> > +	fi
> > +
> >          # setup DNS resolver
> >          if [[ "${IPV4DNS0}" != "0.0.0.0" ]]; then
> >              echo "nameserver ${IPV4DNS0}" > /etc/resolv.conf
> >   
> 
> I guess this is not needed (not that you know about BOOTIF=), right?

My setup works without now and users of pxelinux and iPXE are fine.

Are there any other pxe boot loaders that do not support giving mac address
via boot parameter?
-- 
main(a){char*c=/*    Schoene Gruesse                         */"B?IJj;MEH"
"CX:;",b;for(a/*    Best regards             my address:    */=0;b=c[a++];)
putchar(b-1/(/*    Chris            cc -ox -xc - && ./x    */b/42*2-3)*42);}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 473 bytes
Desc: OpenPGP digital signature
URL: <https://lists.archlinux.org/pipermail/arch-releng/attachments/20160527/402ed1ea/attachment-0001.asc>


More information about the arch-releng mailing list