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

Bug#848597: debian-installer: iPXE script in DHCP bootfile option is interpreted as preseed filename



On Wednesday 21 December 2016 10:16:24 Philip Hands wrote:
> Pali Rohár <pali.rohar@gmail.com> writes:
> > Package: debian-installer
> > Severity: normal
> > 
> > Dear Maintainer,
> > 
> > when DHCP server is configured to send bootfile option with iPXE
> > script
> > 
> > then debian-installer fails with following "red" error:
> >   [!!] Download debconf preconfiguration file
> >   
> >   Failed to process the preconfiguration file
> >   
> >   The installer failed to process the preconfiguration file from
> >   <bootfile>. The file may be corrupt.
> > 
> > (where <bootfile> is value of that DHCP option)
> > 
> > It looks like debian-installer expects that DHCP bootfile option
> > will contains correct preseed file. And if that DHCP option
> > contains not Debian preseed file, then it show above "red" error
> > message.
> 
> Is it the case that iPXE config files are the only things we need to
> worry about here?  (seems probable given the lack of previous
> reports)

I do not know. Maybe there are other applications which uses DHCP 
bootfile option for own setup...

> If so, we could just check for '#!ipxe' and if found downgrade the
> error to a warning, or perhaps to log what happened but otherwise
> ignore it.

As DHCP bootfile can be served for any application, I think that Debian 
Installer should check that file is for him, not that file is for PXE...

With your way, to just check for '#!ipxe' can be broken again in future 
once there will be another application which will use bootfile option. 
And it could be any fork of ipxe with new name... as it was before with 
gpxe...

-- 
Pali Rohár
pali.rohar@gmail.com

Attachment: signature.asc
Description: This is a digitally signed message part.


Reply to: