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

Re: How to preseed install via pppoe (for A-DSL)?



Josef Wolf wrote:
> On Wed, Nov 28, 2007 at 02:01:31AM +0200, Eddy Petrișor wrote:
> 
>> Did you try a regular image without any preseeding?
> 
> I could now test regular images.  And they both (debian-40r1 and
> ubuntu-7.10 alternate) work as expected.

Ok

>> There is the possiblity to set the debugging level of debconf to
>> DEBCONF_DEBUG=5 (in debconf-devel the value is a string, but in D-I
>> is a number) by passing DEBCONF_DEBUG=5 to the kernel command line.
>> The syslog should be more verbose this time.
> 
> Ideed, it is:
> 
> [ ... ]
> Nov 28 17:06:28 debconf: --> INPUT high ppp/password
> Nov 28 17:06:28 debconf: <-- 0 question will be asked
> Nov 28 17:06:28 debconf: --> GO
> Nov 28 17:06:34 debconf: <-- 0 ok
> Nov 28 17:06:34 debconf: --> GET ppp/password
> Nov 28 17:06:34 debconf: <-- 0 xxxxxxxxxxxxx
> Nov 28 17:06:34 debconf: --> UNREGISTER ppp/password
> Nov 28 17:06:34 debconf: <-- 0
> Nov 28 17:06:34 debconf: --> UNREGISTER ppp/username
> Nov 28 17:06:34 debconf: <-- 0
> Nov 28 17:06:34 debconf: --> INPUT high netcfg/get_hostname
> Nov 28 17:06:34 debconf: <-- 30 question skipped
> Nov 28 17:06:34 main-menu[2964]: (process:13076): Terminated 
> Nov 28 17:06:34 main-menu[2964]: (process:13076): Terminated 
> Nov 28 17:06:34 main-menu[2964]: WARNING **: Configuring 'ppp-udeb' failed with error code 30 
> 
> Well, here's the reason why postinst returns error code 30.  According to
> debconf-devel(7),  error code 30 from "dh_input high netcfg/get_hostname"
> means that debconf will not present the question to the user.  There's no
> reason to present the question, because it is preseeded and the answer is
> already known.  But there's no explicit exit in the postinst, so why does
> postinst exit here? Is confmodule terminating the postinst script?

'set -e' might be the answer to your why queestion.

Oops, apprently ppp-udeb's postinst should handle this return code (30) for
preseeding to work correctly (but I'll need a second oppinon from either Joey,
Frans or Colin about this, since I am not sure about preseeding).

To test what I'm saying, please try this:

Change line 172 from ppp-udeb's postinst (should be
/var/lib/dpkg/info/ppp-udeb.postinst after the ppp-udeb udeb has been loaded):

	db_input high netcfg/get_hostname

into

	db_input high netcfg/get_hostname || [ $? -eq 30 ]

and try again with the preseeded image.

Do the same if any other db_input you preseed makes ppp-udeb's postinst to exit.


Note that you should do the change before the execution reaches ppp-udeb's
configuration (if you have the ppp username question is already late), but after
the udeb is loaded (so that the file exists). You could let the postinst fail
once and retry again, but I, as I said before, am not sure how this interacts
with preseeding.

-- 
Regards,
EddyP
=============================================
"Imagination is more important than knowledge" A.Einstein

Attachment: signature.asc
Description: OpenPGP digital signature


Reply to: