While that would be nice, the issue is every ISO has different parameters. So you cannot mount them all the same.
While my Ubuntu entries are the same, and my server entry does not work as it is different from a desktop most other installs have files in different directories on the "CD" and need different parameters. If everyone did it the same then it might be possible.
Code:
# livecdimage.cfg
# Add this to 40_custom to load this file:
# menuentry 'Live ISOs' {
# configfile (hd2,4)/iso/livecdimage.cfg
#}
menuentry "Uubuntu 12.10 Quantal ISO 64bit" {
set isofile="/iso/quantal-desktop-amd64.iso"
insmod part_gpt
loopback loop (hd2,4)$isofile
linux (loop)/casper/vmlinuz boot=casper iso-scan/filename=$isofile nomodeset
initrd (loop)/casper/initrd.lz
}
menuentry "Uubuntu 12.04 Secure Remix ISO 64bit" {
set isofile="/iso/ubuntu-secure-remix-12.04-64bits.iso"
insmod part_gpt
loopback loop (hd2,4)$isofile
linux (loop)/casper/vmlinuz boot=casper iso-scan/filename=$isofile nomodeset
initrd (loop)/casper/initrd.lz
}
menuentry "Ubuntu 12.04 Precise ISO 64bit" {
set isofile="/iso/ubuntu-12.04-desktop-amd64.iso"
insmod part_gpt
loopback loop (hd2,4)$isofile
linux (loop)/casper/vmlinuz boot=casper iso-scan/filename=$isofile nomodeset
initrd (loop)/casper/initrd.lz
}
menuentry "Ubuntu 12.04 Precise Server ISO 64bit" {
set isofile="/iso/ubuntu-12.04-server-i386.iso"
insmod part_gpt
loopback loop (hd2,4)$isofile
# linux (loop)/casper/vmlinuz boot=casper iso-scan/filename=$isofile
# initrd (loop)/casper/initrd.lz
linux (loop)/install/vmlinuz boot=file=/cdrom/preseed/ubuntu-server.seed iso-scan/filename=$isofile vga=788
initrd (loop)/install/initrd.gz
# kernel /install/vmlinuz
# append file=/cdrom/preseed/ubuntu-server.seed vga=788 initrd=/install/initrd.gz quiet --
}
menuentry "Ubuntu 12.04 Precise mini ISO 64bit" {
set isofile="/iso/mini.iso"
insmod part_gpt
loopback loop (hd2,4)$isofile
# linux (loop)/casper/vmlinuz boot=casper iso-scan/filename=$isofile
# initrd (loop)/casper/initrd.lz
linux (loop)/vmlinuz iso-scan/filename=$isofile vga=788
initrd (loop)/initrd.gz
# kernel /install/vmlinuz
# append file=/cdrom/preseed/ubuntu-server.seed vga=788 initrd=/install/initrd.gz quiet --
}
menuentry "Try ms_lts_precise_r4 without installing" {
set isofile="/iso/ms_lts_precise_r4.iso"
loopback loop (hd2,4)$isofile
linux /casper/vmlinuz file=/cdrom/preseed/ubuntu.seed boot=casper iso-scan/filename=$isofile quiet splash --
initrd /casper/initrd.lz
}
menuentry "Fedora-17 ISO 64bit" {
set isofile="/iso/Fedora-17-x86_64-Live-Desktop.iso"
insmod part_gpt
loopback loop (hd2,4)$isofile
linux (loop)/isolinux/vmlinuz0 fromiso=$isofile root=live:$isofile rootfstype=auto ro liveimg rhgb rd.luks=0 rd.md=0 rd.dm=0
initrd (loop)/isolinux/initrd0.img
}
menuentry "Kubuntu 11.04 Natty ISO 64bit" {
set isofile="/iso/kubuntu-11.04-desktop-amd64.iso"
insmod part_gpt
loopback loop (hd2,4)$isofile
linux (loop)/casper/vmlinuz boot=casper iso-scan/filename=$isofile nomodeset
initrd (loop)/casper/initrd.lz
}
menuentry "Parted Magic (Boot ISO Image via Grub2) " {
insmod part_gpt
set isofile="/iso/pmagic_2012_05_30.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=256MiB
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
}
# linux /workdir/vmlinuz fromiso=/dev/sda11/debian-live-6.0.3-i386-lxde-desktop.iso boot=live config BOOT_IMAGE=/live/vmlinuz
menuentry "Boot-Repair ISO 64bit " {
insmod part_gpt
set isofile="/iso/boot-repair-disk.iso"
loopback loop (hd2,4)$isofile
linux (loop)/live/vmlinuz2 boot=live config union=aufs noswap noprompt ip=frommedia findiso=$isofile toram=filesystem.squashfs
# linux (loop)/live/vmlinuz2 boot=live config
initrd (loop)/live/initrd2.img
}
menuentry "Rescatux" {
recordfail
insmod part_gpt
insmod ext2
set isofile="/iso/rescatux_cdrom_usb_hybrid_i386_486-amd64_0.30b4_sg2d.iso"
loopback loop (hd2,4)$isofile
# linux (loop)/casper/vmlinuz2 boot=live config fromiso=$isofile
linux (loop)/casper/vmlinuz2 boot=casper iso-scan/filename=$isofile nomodeset
initrd (loop)/casper/initrd2.lz
}
menuentry "SystemRescue CD on hard drive" {
set root=(hd2,4)
linux /sysrcd/rescuecd subdir=sysrcd setkmap=us
initrd /sysrcd/initram.igz
}
menuentry "Reboot" {
reboot
}
menuentry "Halt" {
halt
}
Bookmarks