1st Problem: Design Loopback code to Boot Debian Live 9.11.0 DVD with Legacy Grub2

J.A. Bezemer j.a.bezemer at opensourcepartners.nl
Mon Sep 23 14:33:16 BST 2019


On Mon, 23 Sep 2019, Susmita/Rajib wrote:

[..]
> 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.

a) Are you aware that the Debian Live images contain a hybrid CD/HDD setup 
so that they can be written to usb drive as-is, and be booted from it 
immediately?

b) When creating a multi-live usb drive myself, I found the easiest way is 
to just copy vmlinuz, initrd.img and filesystem.squashfs from the .iso 
image and put these files into a separate directory on the usb drive. No 
.iso file on the usb drive, no grub-loopback needed. The grub command then 
looks like this:

   linux /debian/live64xfce/vmlinuz boot=live components
     live-media-path=/debian/live64xfce quiet splash
   initrd /debian/live64xfce/initrd.img

The live startup script will search for a file named 
${live-media-path}/filesystem.squashfs on any mountable drive.

Regards,
Anne Bezemer



More information about the Pkg-grub-devel mailing list