I think I posted before, I just do it manually.
Yes you may have to go into ISO and see the path it expects and adjust your grub boot file to be that path. I also have to often review the boot parameters the ISO expects or needs and add them also. Each is different.
And not all ISO can be loop mounted but many can be.
Ubuntu uses casper (for desktops), Parted Magic used pmagic, and gparted used live. Each may be different as there is no standard.
These are from my hard drive as that is my most updated version. And drive is gpt partitioned so I have to insmod that for grub to work correctly.
Code:
menuentry "Ubuntu 13.04 Raring ISO 64bit" {
set isofile="/iso/raring-desktop-amd64.iso"
insmod part_gpt
loopback loop (hd2,4)$isofile
linux (loop)/casper/vmlinuz.efi file=/cdrom/preseed/ubuntu.seed boot=casper iso-scan/filename=$isofile nomodeset
initrd (loop)/casper/initrd.lz
}
menuentry "Parted Magic 2013 (Boot ISO Image via Grub2) " {
insmod part_gpt
set isofile="/iso/pmagic_2013_02_28.iso"
loopback loop (hd2,4)$isofile
linux (loop)/pmagic/bzImage iso_filename=$isofile edd=off load_ramdisk=1 prompt_ramdisk=0 rw vga=normal loglevel=9 max_loop=256 vmalloc=384MiB nomodeset
initrd (loop)/pmagic/initrd.img
}
menuentry "gparted (Boot ISO Image via Grub2) " {
insmod part_gpt
set isofile="/iso/gparted-live-0.12.1-5.iso"
loopback loop (hd2,4)$isofile
# linux (loop)/live/vmlinuz live-media=iso=$isofile keyb=us gl_kbd=us gl_lang=en_US gl_numlk=off gl_batch boot=live union=aufs #toram=filesystem.squashfs noswap noprompt vga=791
# linux (loop)/live/vmlinuz fromiso=$isofile boot=live noswap
linux (loop)/live/vmlinuz boot=live config union=aufs noswap noprompt ip=frommedia findiso=$isofile toram=filesystem.squashfs
initrd (loop)/live/initrd.img
}
Bookmarks