Want to design a loopback code to boot the Debian 9.11.0 Live CD image
with first the legacy grub2, and then alter the HCL laptop menu-list
with the latest Grub.
Written a code, by mounting the Debian Live ISO, reading the necessary
files and using clues therein, but still can't boot the Live Debian
CD:
#############################################
menuentry "Debian GNU/Linux Live (kernel 4.9.0-11-686)" {
set isofile="/incomplete/debian-live-9.11.0-i386-lxde.iso"
loopback loop (hd0,msdos4)$isofile
linux (loop)/live/vmlinuz-4.9.0-11-686 boot=live components splash quiet
initrd (loop)/live/initrd.img-4.9.0-11-686
}
#############################################
submenu "Debian Live with Localisation Support" {
set isofile="/incomplete/debian-live-9.11.0-i386-lxde.iso"
loopback loop (hd0,msdos4)$isofile
menuentry "English (en)" {
linux (loop)/live/vmlinuz-4.9.0-11-686 boot=live components
locales=en_US.UTF-8 quiet splash
initrd (loop)/live/initrd.img-4.9.0-11-686
}
#############################################
Old Grub2 is stalling after a while, resulting in barebone linux CLI.