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

Re: Queries about netboot deployment of Debian Squeeze



On Tue, Jun 14, 2011 at 08:48:39AM +0200, Stefan Midjich wrote:
> The dhcp timeout setting is not respected, I have tried it in many
> variations found online and many different values but none have
> worked. The progress bar never waits more than 20 seconds and I have
> to retry 1-3 times every deployment. I get paid to press enter, up,
> up, enter but I think it's quite embarrassing to not have it fixed.
> 
> d-i netcfg/dhcp_timeout string 120
> d-i netcfg/dhcp_timeout=120

I ran into this, too. d-i probably hasn't read your preseed file at the
point it's configuring the network, so try setting the timeout earlier, such
as on the kernel command line:

LABEL squeeze
	kernel squeeze/amd64/vmlinuz
	append [...] netcfg/dhcp_timeout=90

> The other question is about late_command and in-target, can I somehow
> chroot myself into /target and finish the installation with a fully
> working Debian system? I've tried doing this by running a bash script
> using chroot, and also in-target prefixed to the command but chroot
> didn't work at all and in-target gave me errors. So since I can't get
> it right I would love to see someone elses take on this because right
> now we create an rc.local script that we clobber just before rebooting
> one final time. This is something I would like to get done during the
> install process instead.

We retrieve a postinst script using wget(1) and run it chrooted like this:

d-i preseed/late_command string wget -O /target/postinst http://url/to/postinst && chmod 755 /target/postinst && debconf-disconnect bin/in-target /postinst && rm /target/postinst

john
-- 
John Morrissey          _o            /\         ----  __o
jwm@horde.net        _-< \_          /  \       ----  <  \,
www.horde.net/    __(_)/_(_)________/    \_______(_) /_(_)__


Reply to: