preseeding
Petter schreibt:
I got two examples for you. One is the debian-edu-install package in the Debian archive, where the udeb set up our own partitioning.
Another is the udeb I wrote for the University of Oslo where I work, which is a lot easier to follow as it is doing less things. It is
available from
<URL:http://deb.uio.no/debian/pool/lucid/uio-extra/u/usit-install-udeb/>.
siehe:
http://maintainer.skolelinux.org/debian-edu-doc/de/debian-edu-lenny-manual.html#AEN634 Findet man bei Debian-edu unter
/etc/debian-edu/www Frühe Preseedings/Voreinstellungen müssen in der
Lenny/PXEConfig gemacht werden.
Ein Beispiel für eine vollautomatische Installation
Man kann Datei
/etc/debian-edu/www/debian-edu-install.dat.local
neu anlegen wie weiter unten abgebildet. Danach sollte
/usr/sbin/debian-edu-pxeinstall
aufgerufen werden um diese Einträge an
/etc/debian-edu/www/debian-edu-install.dat
- die eigentliche presseding Datei anzuhängen.

Es werden auch pxe Startdateien in
/var/lib/tftpboot/debian-edu/
neu erzeugt die eventuell unsere geänderten Dateien überschreiben.
# German Time zone
d-i time/zone string Europe/Berlin
# Locale sets language and country.
# d-i debian-installer/locale string de_DE
# if you want popcon enabled/disable by default
d-i debian-edu-install/participate-popcon boolean false
# This we select in the pxe bootfile
# d-i debian-edu-install/profile multiselect Workstation
d-i debian-edu-install/confirm boolean true
d-i passwd/root-password password Admin123
d-i passwd/root-password-again password Admin123
# only for tjener and lwat set config.php
lwat lwat/allowPwSet boolean true
dazu kann man dann den passende Auschnitt in: /var/lib/tftpboot/debian-edu/install.cfg schreiben.
# Based on the values used in Debian, and added the preseed URL LABEL neteduboot-amd64
MENU LABEL Install Edu/^amd64 (Minimal)
kernel debian-installer/amd64/linux
append initrd=debian-installer/amd64/initrd.gz -- quiet url=http://www/debian-edu-install.dat hostname=pxeinstall domain=intern debian-installer/locale=en_US.UTF-8 console-keymaps-at/keymap=de-latin1-nodeadkeys netcfg/choose_interface=auto desktop=kde nosplash debian-edu-install/profile=Minimal
include menupassword.cfg
Man sieht hier die
url=http://www/debian-edu-install.dat
unsere
/etc/debian-edu/www/debian-edu-install.dat
Außerdem wird schon ein Profil mit
debian-edu-install/profile=Minimal
gewählt. Auch Einstellungen wie der Desktop
desktop=kde
oder gnome und Einstellungen für kritische Klienten wie
nosplash
können hier für die Installation bestimmt werden.
Und wenn man sein eigenes Menu nur für den Client /var/lib/tftpboot/pxelinux.cfg/0A000207 -> 10.0.2.7 haben möchte! Unbedingt noch mit
Lenny/LWAT die MAC/IP und Name eintragen. Startet nach 3 Sekunden automatisch!
# Based on the values used in Debian, and added the preseed URL
LABEL neteduboot-amd64
MENU LABEL Install Edu/^amd64 (minimal)
kernel debian-installer/amd64/linux
append initrd=debian-installer/amd64/initrd.gz -- quiet url=http://www/debian-edu-install.dat hostname=pxeinstall domain=intern debian-installer/locale=en_US.UTF-8 console-keymaps-at/keymap=de-latin1-nodeadkeys netcfg/choose_interface=auto nosplash debian-edu-install/profile=Minimal
LABEL neteduboot-i386
MENU LABEL Install Edu/^i386 (minimal)
kernel debian-installer/i386/linux
append initrd=debian-installer/i386/initrd.gz -- quiet url=http://www/debian-edu-install.dat hostname=pxeinstall domain=intern debian-installer/locale=en_US.UTF-8 console-keymaps-at/keymap=de-latin1-nodeadkeys netcfg/choose_interface=auto nosplash debian-edu-install/profile=Minimal
include menupassword.cfg
timeout 30
default debian-edu/vesamenu.c32
Debian Edu benutzt schon umfangreiche preseedings für viele Pakete. Zu finden sind diese in debian-edu-install...deb -> /usr/lib/debian-edu-install und debian-edu-profile-udeb...deb und ?
Weitere Infos:
http://wiki.debian.org/DebianInstaller/Preseed Anleitung für Ubuntu aber besser als nix:
https://help.ubuntu.com/9.04/installation-guide/i386/appendix-preseed.html