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

Re: How to include a preseed.cfg file to d-i live



Hello

Modify the file "config/binary" :

LB_BOOTAPPEND_INSTALL="file=/cdrom/install/preseed.cfg"

LB_DEBIAN_INSTALLER_PRESEEDFILE="preseed.cfg"


Then put preseed.cfg in config/binary_debian-installer
You can create a banner for the installer (800x75 px png) and put it in this folder.
Name it banner.png

Create a script and put it into config/hooks
There's an example : /usr/share/live/build/examples/hooks/all_binary_debian-installer-banner.sh






2012/6/2 Luis Arturo Roa Mora <larom.luis@gmail.com>
Hi, everyone. I'm Luis from México, and iḿ using live-build 3.0~a47-1.

Iḿ developing a Wheezy version and i want to provide a live system
with several features:

******* Regional locales  (es_MX.UTF-8)
******* México is located in LatinAmerica so the keyboard distribution is latam
******* Most of Mexican territory uses central time, so the value for
time zone is: Mexico/General.

I want to use those values in the debian installer, so the instalation
process can be as easy as possible for the newbies users.

Here's the lb config command that i've used:

lb config -a i386 -b iso-hybrid --bootappend-live "persistent silent
quickreboot hostname=halconix username=halconix user-fullname=Halconix
UV locales=es_MX.UTF-8 keyboard-layouts=latam timezone=Mexico/General"
--bootloader syslinux --bootstrap debootstrap --debian-installer live
--debian-installer-distribution wheezy --debian-installer-gui true
--distribution wheezy --includes none --interactive shell --initramfs
live-boot -k 686 --memtest none -m
http://mmc.geofisica.unam.mx/debian/ -p gnome --parent-mirror-binary
http://mmc.geofisica.unam.mx/debian/ --archive-areas "main contrib
non-free" --firmware-binary true --firmware-chroot true
--syslinux-theme 'halconix' --win32-loader false

and according to the Live Manual section 12.2: "This kind of
customization is best accomplished with live-build by placing the
configuration in a preseed.cfg file included in
config/binary_debian-installer/". So i've created a preseed.cfg file
which include this settings:
--------------------------------------------------------------------------------------------------------------------
# Configuración del Idioma.
d-i debian-installer/language string es
d-i debian-installer/country string MX
d-i debian-installer/locale string es_MX.UTF-8

# Selección de teclado
d-i console-tools/archs select at
d-i console-keymaps-at/keymap select latam
d-i keyboard-configuration/xkb-keymap select latam

# configurar la Red
d-i netcfg/enable boolean false

#Reloj del sistema
d-i time/zone string Mexico/General
----------------------------------------------------------------------------------------------------------------------------
 i've copied this preseed.cfg file to config/binary_debian-installer,
after that i've hit lb build 2>&1 | tee binary.log. when i tested the
binary-hybrid.iso. D-I not consider the preseed file, it starts as a
normal installation questioning about the Language, keyboard,etc etc.

Searching in the contents of the .iso file i've noticed that the
preseed file is included in /install where the initrd and vmlinuz are,
but as far as i know that file should be inside of the initrd and not
on the outside.

i've also try two differents ways to preseed d-i:

**** one using the --bootappend-install "d-i debian-installer/language
string es d-i debian-installer/country string MX d-i
debian-installer/locale string es_MX.UTF-8 d-i console-tools/archs
select at d-i console-keymaps-at/keymap select latam d-i
keyboard-configuration/xkb-keymap select latam d-i netcfg/enable
boolean false d-i time/zone string Mexico/General" command

**** one using the --debian-installer-preseedfile
/home/halconix/Escritorio/Construccion_Halconix/preseed.cfg  command.

the result was the same, d-i does not contain any presed configuration.

What can i do?, i've also want to modify the artistic aspect of d-i
including new images in /usr/share/graphics directory of the gtk's
initrd.

Shuould i build my own initrd  using the rootskel-gtk package?


--
To UNSUBSCRIBE, email to debian-live-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: CADKh4T9Gwi7+JCkxNuV80wTqd-H400NtpcLLZ3buP+Y4tVr3+g@mail.gmail.com" target="_blank">http://lists.debian.org/CADKh4T9Gwi7+JCkxNuV80wTqd-H400NtpcLLZ3buP+Y4tVr3+g@mail.gmail.com




--
"Quand je vois, j'oublie. Quand je lis, je retiens. Quand je fais, je comprends."


Reply to: