Bug#314618: overwrites preseeded gateway with nonsense
tags 314618 - patch
thank
hi,
On Sun, Jun 19, 2005 at 03:11:53PM -0400, Joey Hess wrote:
> Michael Ablassmeier wrote:
> > im using preseed files to automatically install machines behind a
> > loadbalancer where no dhcpd is running. Preseeding the Gateway
> > results in d-i setting crap:
> >
> > d-i netcfg/get_gateway string 19.224.8.230
> >
> > will produce:
> >
> > ~ #: debconf-get netcfg/gateway
> > 19.224.0.230
> >
> > however, attached patch should fix this.
>
> Seems to me that this patch disables guessing of a gateway address
> during interactive installs, except for the case where the system's IP
> address ends in .1, when the special case you moved the variable set
> into fires. I don't think that's a good idea.
oh well, Indeed.
> We need some other fix. One would be to not set netcfg/get_gateway if it
> already has a value, although along with supporting preseeding of it,
> this would make it not be auto-cacluated if the user revisited the
> netmask question in netcfg.
i think it would be best to not touch any value, as long as the preseed
file includes all needed settings or the user specified them during
interactive installation. I dont know about d-i's internal stuff, nor
how to fix it in a sane way. Go ahead :)
bye,
- michael
Reply to: