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

Bug#805291: preseed: Offer a way to override initrd-level preseeding with kernel command line preseeding



Cyril Brulebois <kibi@debian.org> writes:

> Hi,
>
> Raphaël Hertzog <hertzog@debian.org> (2015-11-16):
>> In Kali, we rely on initrd preseeding to set a bunch of Debconf entries
>> because it's the only sane way to ensure that we have those during netboot
>> too.
>> 
>> Unfortunately, it makes it very hard for end-users to change some of
>> those entries... editing initrd is not the best interface. It would
>> be very nice if there was a way to override such preseeding with the
>> (kernel) boot command line.
>> 
>> Right now env-preseed runs before initrd-preseed:
>> $ ls debian-installer-startup.d/
>> S30env-preseed  S35initrd-preseed  S60auto-install
>> 
>> I'm not sure what is the rationale for this order but if we don't want to
>> swap the order, then I would suggest that we introduce a new syntax that
>> let us do this operation.
>> 
>> I think inverting the order of both script would make a lot of sense. I
>> tried to find reasons not to but there is no intermediary script between
>> S30 and S35 and thus except for the precedence of preseeding, it has no
>> other impact AFAIK.
>> 
>> Otherwise if not possible I suggest "mirror/hostname!=http://my.mirror"; as
>> alternative syntax, somewhat mirroring the already existing ?= syntax
>> (with the exclamation mark conveying the notion of "forcing") but I'm
>> happy with any other syntax that you might prefer.
>> 
>> Phil & Cyril, please share your opinions/preference as I'll probably try
>> to implement this soonish.
>
> I'm afraid I don't have time to spend on figuring out all the possible
> consequences of such a move…

It seems like it ought to be mostly harmless, and probably ought to have
been like that all along (it certainly makes sense to me to have the
harder-to-set preseeds over-ridden by the easier-to-set ones).

You should probably give it a try and see if anything breaks. :-)

Cheers, Phil.
-- 
|)|  Philip Hands  [+44 (0)20 8530 9560]  HANDS.COM Ltd.
|-|  http://www.hands.com/    http://ftp.uk.debian.org/
|(|  Hugo-Klemm-Strasse 34,   21075 Hamburg,    GERMANY

Attachment: signature.asc
Description: PGP signature


Reply to: