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

Bug#282650: default gateway also incorrect



Paul Telford wrote:
> 
> How about something like the attached patch?  So far this seems to do the
> right thing for both preseeding and manual installs, though its quite
> possible I'm missing something obvious.
> 
> 
> As an aside, how do I insert an updated udeb into the d-i image without
> getting an md5 error when it unpacks?  I've updated md5sums.txt but it
> still complains (trying to avoid rebuilding the whole thing)

Put it in localudebs and list it in pkg-lists/local.

>        /* Preseed gateway */
> -      gateway.s_addr = ipaddress.s_addr & netmask.s_addr;
> -      gateway.s_addr |= htonl(1);
> +      if(stat("/var/log/debconf-seed", &buf) == 0) 

Sorry, besides being very ugly, this assumes that network info is always
preseeded if preseeding is done, which it is not.

-- 
see shy jo

Attachment: signature.asc
Description: Digital signature


Reply to: