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

Re: Some of the parameters used in my genisoimage command don't produce a bootable ISO image



What is "${loopback}" in the context below ?

if loadfont $prefix/font.pf2 ; then
  set gfxmode=800x600
  set gfxpayload=keep
  insmod efi_gop
  insmod efi_uga
  insmod video_bochs
  insmod video_cirrus
  insmod gfxterm
  insmod png
  terminal_output gfxterm
fi

if background_image /isolinux/splash intel_iommu=on.png; then
  set color_normal=light-gray/black
  set color_highlight=white/black
elif background_image /splash intel_iommu=on.png; then
  set color_normal=light-gray/black
  set color_highlight=white/black
else
  set menu_color_normal=cyan/blue
  set menu_color_highlight=white/blue
fi

insmod play
play 960 440 1 0 4 440 1
if [ ${iso_path} ] ; then
set loopback="findiso=${iso_path}"
export loopback
fi

menuentry "Debian GNU/Linux Live (kernel 5.10.0-18-amd64)" {
  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 "${loopback}"
  initrd /live/initrd.gz
}

Il giorno mar 11 ott 2022 alle ore 23:35 Mario Marietto <marietto2008@gmail.com> ha scritto:
I've added the string in both config files (menu.cfg and grub.cfg) and then I have rebuilt the ISO with cubic but the preseed file has been ignored by the graphical debian installer.

Il giorno mar 11 ott 2022 alle ore 23:17 Mario Marietto <marietto2008@gmail.com> ha scritto:
I'm trying to modify them as follows :

isolinux/menu.cfg

LABEL English (en)
  SAY "Booting English (en)..."
  linux /live/vmlinuz boot=casper APPEND file=/cdrom/preseed/preseed.cfg auto=true initrd=/live/initrd.gz boot=live components locales=en_US.UTF-8 quiet splash intel_iommu=on

boot/grub/grub.cfg

menuentry "English (en)" {
  linux /live/vmlinuz boot=casper APPEND file=/cdrom/preseed/preseed.cfg auto=true initrd=/live/initrd.gz boot=live components locales=en_US.UTF-8 quiet splash intel_iommu=on "${loopback}"
  initrd /live/initrd.gz
}

I'm not even sure that it's correct,mostly because the grub.cfg file uses two command lines. The second one is "initrd /live/initrd.gz". I'm not sure if it should be there or if I should delete it.

Il giorno mar 11 ott 2022 alle ore 22:35 Thomas Schmitt <scdbackup@gmx.net> ha scritto:
Hi,

Mario Marietto wrote:
> Finally I found something that's very close to the solution :
> https://askubuntu.com/questions/1228909/preseed-config-using-cubic-is-ignored-during-installation

If this shall be the solution then the files to change would probably be
  isolinux/menu.cfg
  boot/grub/grub.cfg

The isolinux configuration serves when booting by legacy BIOS or EFI
legacy mode. For booting via EFI native mode you need to modify the grub
configuration.


Have a nice day :)

Thomas



--
Mario.


--
Mario.


--
Mario.

Reply to: