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

RE: Lenny 501 and presseding

So here is my piece of code in preseed file:
d-i preseed/late_command string mount -o bind /cdrom /target/cdrom; \
        in-target /cdrom/mailinblack/install.sh; \
        umount /target/cdrom

Now I'm facing new problems... ;(
The keymap and the hostname are not properly set...

- Installation process: in the isolinux.cfg file I use: console-keymaps-at/keymap=fr
This works fine with debian etch but fails with lenny.
- Installation: in the preseed file I set:
d-i console-keymaps-at/keymap select fr
but this doest not set the keymap.. in debian lenny (it's ok in etch).. Shuld I set set 'console-keymaps-at/keymap' too?

I set:
d-i netcfg/get_hostname string my_hostname
d-i netcfg/get_domain string my_domain

And the hostname is not properly set..
The domain is set in the /etc/network/interface /etc/resolv.conf files but the /etc/hostname is empty..

I have disable the dhcp configuration using 'd-i netcfg/disable_dhcp boolean true' to avoid the dhcp setting precedence.. Should I also set ' d-i netcfg/dhcp_options select Configure network manually' ?

If needed I could provide the installer logs.



-----Message d'origine-----
De : Frans Pop [mailto:elendil@planet.nl] 
Envoyé : mardi 12 mai 2009 17:05
À : debian-cd@lists.debian.org
Cc : Frédéric DONNAT
Objet : Re: Lenny 501 and presseding

On Tuesday 12 May 2009, Frédéric DONNAT wrote:
> I could get ride of my problem with a mount:
> d-i preseed/late_command string mount -o bind /cdrom /target/cdrom;
> in-target ..etc..
> In fact, the cdrom is mounted on the install system but it seems that
> when we chroot this bind is missing...  ;(

Ah, yes. That is correct. For Lenny the cd is only mounted in the /target 
environment on demand by apt-cdrom in order to be able to support CD 
changing during the installation of packages.

Make sure you unmount the CD again at the end of your script or things 
might blow up (although that's somewhat unlikely to happen at the late 
stage preseed/late is executed).

Reply to: