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

Re: Patch to build-simple-cdd



Vagrant Cascadian <vagrant@freegeek.org> writes:

> On Wed, Jan 10, 2007 at 12:30:20PM +0000, Matthew King wrote:
>> This patch actually does two things (well two and a half because of
>> bug 406320).
>
> i reported a similar bug for i386, but apparently it only got fixed for
> i386. seeing as it's been a problem, maybe i'll keep the workaround you
> proposed (for a while, there was a workaround in build-simple-cdd for
> this).

Steve McIntyre said:

Yup. This went into the svn version of debian-cd quite a while back,
and it's about time we uploaded a new package to match.

So this bug will not be around for long.

>> It gives you the option of specifying a keyboard layout (--keyboard), so
>> that d-i will go away doing its thing and not speak to you until it asks
>> which profile you wish to install, 
>
> nice. another way i've been meaning to look into to accomplish this is
> to use debian-installer's "auto" mode, so that you could include the
> keyboard/language/country settings in the regular preseed file.

I know nothing about this...

>> and add an option to ignore debconf
>> preseed errors (--force-preseed), which allows you to build a CD as a
>> non-root user and still preseed questions only root has access to.
>
> well, as for building preseeds, i don't think there are any questions
> that non-root users can't configure.

This is to allow preseeding of questions listed in
/var/cache/debconf/passwords.dat, such as:
passwd   passwd/root-password    password r00tme

Unless root, /usr/bin/debconf-set-selections fails:

mking@knight:~/src/Sphere/profiles$ /usr/bin/debconf-set-selections --checkonly default.preseed
debconf: DbDriver "passwords" warning: could not open /var/cache/debconf/passwords.dat: Permission denied
error: Cannot find a question for passwd/root-password
error: Cannot find a question for passwd/root-password-again
Command (511) failed with exit code: 1

> debconf-set-selections run as a non-root user will produce a warning
> about not being able to read the debconf passwords database, but that
> shouldn't in any way prevent you from including any question you want in
> your preseeding. i'll look into suppressing the warning message, and
> consider how to implement your patch in a way consistant with the coding
> style of simple-cdd.

It doesn't when debconf-set-selections is not followed immediately by
'|| exit 1', which is what the patch changes (albeit in an ugly way).

Matthew

-- 
I must take issue with the term "a mere child," for it has been my
invariable experience that the company of a mere child is infinitely
preferable to that of a mere adult.
                                           --  Fran Lebowitz



Reply to: