Actually I'm using only UEFI and the file that I should modify is located on /home/ziomario/Scrivania/PassT-Cubic/Debian-new/custom-disk/boot/grub/grub.cfg. What works is this :
menuentry "Debian GNU/Linux Custom (kernel 5.10.0-18-amd64)" {
linux /d-i/gtk/vmlinuz APPEND file=/cdrom/preseed/preseed.cfg auto=true initrd=/live/initrd.gz boot=live components locales=en_US.UTF-8 quiet splash "${loopback}"
initrd /d-i/gtk/initrd.gz
}
NOT this :
menuentry "English (en)" {
linux /live/vmlinuz boot=casper APPEND file=/cdrom/preseed/preseed.cfg initrd=/live/initrd.gz boot=live components locales=en_US.UTF-8 quiet splash intel_iommu=on "${loopback}"
initrd /live/initrd.gz
}
I think because the script that detects the presence of the preseed file is inside the /d-i/gtk/initrd.gz and NOT inside /live/initrd.gz. Maybe something like this will work ?
menuentry "English (en)" {
linux /live/vmlinuz boot=casper APPEND
file=/cdrom/preseed/preseed.cfg initrd=/d-i/gtk/initrd.gz boot=live
components locales=en_US.UTF-8 quiet splash intel_iommu=on "${loopback}"
initrd /d-i/gtk/initrd.gz
}
or :
menuentry "Graphical Debian Installer" {
linux /d-i/gtk/vmlinuz APPEND
file=/cdrom/preseed/preseed.cfg video=vesa:ywrap,mtrr vga=788 "${loopback}"
initrd /d-i/gtk/initrd.gz
}
I'm not interested in modifying the isolinux / menu.cfg file,so I will remove from there any reference to the preseed.cfg file.
Mario.