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

RE: Lenny 501 and presseding

I could sucessfully update my keyboard option.. using isolinux option.

So everything is quite fine except for the system hostname.

My preseed file is as follow:
d-i netcfg/disable_dhcp boolean true

d-i netcfg/get_nameservers string
d-i netcfg/get_ipaddress string
d-i netcfg/get_netmask string
d-i netcfg/get_gateway string
d-i netcfg/confirm_static boolean true

d-i netcfg/get_hostname string mibox-v4
d-i netcfg/get_domain string mailinblack.dev

and the domainname seems to be good, but the hostname file remains empty...  ;(

Could someone points me in the right direction to solve the problem?


I see the following comment.. but how can I be sure it is really disabled ?

# Any hostname and domain names assigned from dhcp take precedence over
# values set here. However, setting the values still prevents the questions
# from being shown, even if values come from dhcp.

-----Message d'origine-----
De : Frédéric DONNAT [mailto:fdonnat@mailinblack.com] 
Envoyé : mercredi 13 mai 2009 09:59
À : debian-cd@lists.debian.org
Objet : 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).

To UNSUBSCRIBE, email to debian-cd-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

Reply to: