"cd non valable détecté" avec preseed.cfg

Bonjour tout le monde !

J’ai passé la nuit à me battre avec mon initrd.gz et son preseed.cfg.
Je vous explique, il y a quelques mois je me suis preseedé une wheezy, j’ai sorti une version qui fonctionne mais pas optimisée niveau partitionnement, donc la je reprends en ayant modifié le preseed.cfg.

Donc j’ai repris les sources, je met le nouveau preseed, je gz le initrd

création de l’iso

Quand je boot (sous kvm) je choisi install, et la il me dit
"Un CD non valable a été détecté"
Un alt-F4 pour les logs
"CD-ROM mount succeeded: device=/dev/sr0 fstype=iso9660"
“The CD in /dev/sr0 is not a Debian CD!”

Je n’avais pas eu ce problème la première fois, là, impossible d’aller plus loin, j’ai testé en récupérant les sources depuis l’iso preseedé qui fonctionne, quand je refais le initrd.gz, même erreur.
J’ai récupéré le dernier iso à jour sur le site de debian, j’injecter le preseed.cfg, même erreur… :confused:

Quand je recrée un initrd.gz sans preseed sa fonctionne.
Je précise que j’ai refais le md5sum.txt

Voici le preseed.cfg

[code]# Preseed file for Debian

Contents of the preconfiguration file (for wheezy)

d-i debian-installer/language string fr
d-i debian-installer/country string FR
d-i debian-installer/locale string fr_FR.UTF-8

Keyboard

d-i console-keymaps-at/keymap select fr
d-i keyboard-configuration/xkb-keymap select fr
d-i console-keymaps-at/keymap select fr
d-i keymap select fr(latin9)

Network configuration

d-i netcfg/choose_interface select auto
d-i netcfg/get_hostname string newmachine
d-i netcfg/wireless_wep string

Apt mirror

d-i mirror/protocol string http
d-i mirror/country string manual
d-i mirror/http/hostname string ftp.fr.debian.org
d-i mirror/http/directory string /debian
d-i mirror/http/proxy string
d-i mirror/suite string wheezy

Account setup

d-i passwd/root-login boolean true
d-i passwd/make-user boolean false

openssl passwd -1 pass

d-i passwd/root-password-crypted password ""
d-i passwd/root-password-again-crypted password ""
d-i passwd/user-fullname string sn00z3
d-i passwd/username string sn00z3
d-i passwd/user-password-crypted password ""
d-i passwd/user-password-again-crypted password “”

Clock and time zone setup

d-i clock-setup/utc boolean true
d-i time/zone string Europe/Paris
d-i clock-setup/ntp boolean true

Partitioning

MD5 = openssl passwd -1 pass

d-i partman-auto/disk string /dev/sda
d-i partman-lvm/device_remove_lvm boolean true
d-i partman-md/device_remove_md boolean true
d-i partman-lvm/confirm boolean true
d-i partman-auto-lvm/guided_size string max
d-i partman-auto/method string crypto
d-i partman-auto/choose_recipe select boot-crypto
d-i partman-auto-lvm/new_vg_name string crypt
d-i partman-auto/expert_recipe string boot-crypto ::
250 35 250 ext4 $primary{ } $bootable{ }
method{ format } format{ }
use_filesystem{ } filesystem{ ext4 }
mountpoint{ /boot }
.
5000 75 5000 ext4 $lvmok{ } lv_name{ lv_root }
in_vg { crypt } method{ format } format{ }
use_filesystem{ } filesystem{ ext4 } mountpoint{ / }
.
1000 75 1000 linux-swap $lvmok{ } lv_name{ lv_swap }
in_vg { crypt } method{ swap } format{ }
.
1000000 25 1000000 ext4 $lvmok{ } lv_name{ lv_home }
in_vg { crypt } method{ format } format{ }
use_filesystem{ } filesystem{ ext4 } mountpoint{ /home }
.
d-i partman-partitioning/confirm_write_new_label boolean true
d-i partman/choose_partition select finish
d-i partman/confirm boolean true
d-i partman/confirm_nooverwrite boolean true

#d-i partman-partitioning/confirm_write_new_label boolean true
#d-i partman/choose_partition select finish
#d-i partman/confirm boolean true
#d-i partman/confirm_nooverwrite boolean true
#d-i partman-md/confirm boolean true
#d-i partman/mount_style select uuid
#################################################################

Base system installation

d-i base-installer/install-recommends boolean true

Apt setup

apt-cdrom-setup apt-setup/cdrom/set-first boolean false
d-i apt-setup/non-free boolean true
d-i apt-setup/contrib boolean true
d-i apt-setup/use_mirror boolean true
d-i apt-setup/services-select multiselect security, volatile
d-i apt-setup/security_host string security.debian.org
d-i apt-setup/volatile_host string volatile.debian.org

Package selection

tasksel tasksel/first multiselect standard
d-i pkgsel/upgrade select safe-upgrade
popularity-contest popularity-contest/participate boolean false
d-i pkgsel/include string openssh-server
d-i pkgsel/include string vim
d-i pkgsel/include string nmap
#d-i pkgsel/include string terminator

Grub

d-i grub-installer/only_debian boolean true
d-i grub-installer/with_other_os boolean true

Finish install

d-i finish-install/reboot_in_progress note
d-i cdrom-detect/eject boolean true[/code]

Je continue mes recherches mais les liens dans google commencent à tous être violets ^^

Merci d’avance :slightly_smiling:

Salut,
j’ai eu le même problème au boulot et je viens de résoudre pour moi !
En fait l’ordi n’a pas eu le temps de charger le cd (enfin l’usb dans mon cas) (parce qu’il choisi les options trop vite), si tu enlèves le choix automatique du clavier ca marche.
Si tu veux conserver le choix automatique du clavier (ce que j’ai fait perso:
J’ai trouvé cette solution qui marche (je suis allé jusqu’à 20 perso)
erreur-de-detection-du-cdrom-installation-avec-preseed-t41438.html
A+