[solved] debian buster - netinstall - uefi - fred - 2019-10-17 17:09
Hello,
Me again...
My preseed conf is not load.
Code:
:debian-amd64-auto
kernel http://debian.proxad.net/debian/dists/stable/main/installer-amd64/current/images/netboot/debian-installer/amd64/linux initrd=initrd.gz initrd=preseed
initrd http://debian.proxad.net/debian/dists/stable/main/installer-amd64/current/images/netboot/debian-installer/amd64/initrd.gz
initrd http://cdimage.debian.org/cdimage/unofficial/non-free/firmware/stable/current/firmware.cpio.gz
initrd --name preseed http://192.168.10.118/standard.cfg preseed.cfg
prompt Press any key
boot
I have install screen but I preseed not take effect.
Code:
# Préconfigurer la locale seule définit la langue, le pays et la locale.
d-i debian-installer/locale string fr_FR.UTF-8
# Choix du clavier :
d-i keyboard-configuration/xkb-keymap select fr(latin9)
#Réseau
d-i netcfg/choose_interface select auto
# Nom imposé
#d-i netcfg/hostname string somehost
# Supprimer le dialogue irritant sur la clé WEP.
d-i netcfg/wireless_wep string
# Drivers non libre si besoin pour le réseau
d-i hw-detect/load_firmware boolean true
### Configuration du mirroir français
d-i mirror/protocol string ftp
d-i mirror/ftp/hostname string ftp.fr.debian.org
d-i mirror/ftp/directory string /debian
d-i mirror/ftp/proxy string
# compte root (l'utilisateur ordinaire utilisera sudo).
d-i passwd/root-login boolean true
d-i passwd/root-password-crypted password xxxx
# Vous pouvez aussi présélectionner le nom de l'utilisateur
d-i passwd/username string ubuntu
d-i passwd/user-password-crypted password xxxx
# Cette commande permet de régler l'horloge matérielle sur UTC :
d-i clock-setup/utc boolean true
# Vous pouvez mettre toute valeur acceptée pour $TZ.
# Voyez ce que contient /usr/share/zoneinfo/ pour les valeurs possibles.
d-i time/zone string Europe/Paris
# La ligne suivante autorise l'utilisation de NTP pour régler l'horloge
# pendant l'installation :
d-i clock-setup/ntp boolean true
#Partition
d-i partman-auto/method string crypto
d-i partman-lvm/device_remove_lvm boolean true
d-i partman-lvm/confirm boolean true
d-i partman-auto-lvm/guided_size string max
d-i partman-auto-lvm/new_vg_name string crypt
d-i partman-auto/disk string /dev/sda
d-i partman-auto/choose_recipe select root-encrypted
d-i partman-auto/expert_recipe string \
root-encrypted :: \
40 50 100 ext3 \
$primary{ } $bootable{ } \
method{ format } format{ } \
use_filesystem{ } filesystem{ ext4 } \
mountpoint{ /boot } \
. \
1000 1000 100% linux-swap \
$lvmok{ } lv_name{ swap } \
in_vg { crypt } \
$primary{ } \
method{ swap } format{ } \
. \
500 10000 1000000000 ext4 \
$lvmok{ } lv_name{ root } \
in_vg { crypt } \
$primary{ } \
method{ format } format{ } \
use_filesystem{ } filesystem{ ext4 } \
mountpoint{ / } \
. \
500 2000 5120 ext4 \
$lvmok{ } lv_name{ root } \
in_vg { crypt } \
$primary{ } \
method{ format } format{ } \
use_filesystem{ } filesystem{ ext4 } \
mountpoint{ /var/log } \
#paquets
tasksel tasksel/first multiselect standard, ssh-server
d-i pkgsel/include string vim,curl,net-tools,whois,htop,tmux,python3,sudo
#amorçage
d-i grub-installer/only_debian boolean true
d-i grub-installer/bootdev string default
#creation de l'authorized_key
d-i preseed/late_command string \
# Pour éviter le dernier message disant que l'installation est terminée :
d-i finish-install/reboot_in_progress note
Any idea?
Thanks
RE: preseed debian buster - NiKiZe - 2019-10-18 12:59
relevant for why is if you are booting in efi mode or not.
you might want to use preseed.cfg in all cases...
If in efi mode there will be no cpio headers added so it won't appear as /preseed.cfg for the kernel, while it will if you boot in pcbios mode.
for efi, you will have to add cpio headers yourself
Code:
echo preseed.cfg | cpio -H newc -o > preseed.cfg.cpio
RE: preseed debian buster - fred - 2019-10-19 08:38
Hello and thanks for your answer.
I tried this after found http://forum.ipxe.org/showthread.php?tid=8275, in add of your reply.
Code:
kernel http://debian.proxad.net/debian/dists/stable/main/installer-amd64/current/images/netboot/debian-installer/amd64/linux initrd=initrd.gz initrd=preseed.cfg.cpio
initrd http://debian.proxad.net/debian/dists/stable/main/installer-amd64/current/images/netboot/debian-installer/amd64/initrd.gz
initrd http://cdimage.debian.org/cdimage/unofficial/non-free/firmware/stable/current/firmware.cpio.gz
initrd http://pxe-server.lan/preseed.cfg.cpio
boot
But not working.
I did echo preseed.cfg | cpio -H newc -o > preseed.cfg.cpio
and it's add this to preseed.cfg.cpio
Code:
0707010000CDFA000081E40000000000000021000000015DA85C6D000011AC000000000000003B00000000000000000000000C00000000preseed.cfg^@^@^@
Something I don't understand again.
I need to add preseed in archive to be load?!
RE: preseed debian buster - fred - 2019-10-20 14:57
Hello,
I tried many configuration, and I found something works with netinstall + uefi / preseed !
my menu.ipxe:
Code:
kernel http://debian.proxad.net/debian/dists/stable/main/installer-amd64/current/images/netboot/debian-installer/amd64/linux initrd=initrd.gz initrd=firmware.cpio.gz locale=fr_FR.UTF-8 keyboard-configuration/layoutcode=fr keyboard-configuration/variantcode=latin9 keymap=skip-config auto=true priority=critical auto url=http://${66}/iso/debian/preseed.cfg
initrd http://debian.proxad.net/debian/dists/stable/main/installer-amd64/current/images/netboot/debian-installer/amd64/initrd.gz
initrd http://cdimage.debian.org/cdimage/unofficial/non-free/firmware/stable/current/firmware.cpio.gz
You have to put in kernel args keyboard and localization if you don't want to be ask about, and add priority=critical auto url=http://URL/path/to/preseed.cfg
Know I tried to pass somes late-command, but I have error. It's another story without link with ipxe.
Hope can help with this example.
|