Skip to content

Instantly share code, notes, and snippets.

@zyguan zyguan/grub.cfg
Last active Nov 19, 2015

Embed
What would you like to do?
Examples of booting linux iso images
# This configuration may be outdated, please see:
# https://wiki.archlinux.org/index.php/Multiboot_USB_drive
# https://wiki.archlinux.org/index.php/Talk:Multiboot_USB_drive
set timeout=10
insmod search_fs_uuid
# you must replace E85C-CED5 with the actual uuid
search --no-floppy --set=isopart --fs-uuid E85C-CED5
set imgdevpath='/dev/disk/by-uuid/E85C-CED5'
# change the following iso paths if needed
set archiso='/boot/iso/archlinux-2015.11.01-dual.iso'
set ubtdiso='/boot/iso/ubuntu-14.04-desktop-amd64.iso'
set ubtsiso='/boot/iso/ubuntu-14.04-server-amd64.iso'
menuentry 'archlinux iso x86_64' {
loopback loop ($isopart)$archiso
linux (loop)/arch/boot/x86_64/vmlinuz img_dev=$imgdevpath img_loop=$archiso
initrd (loop)/arch/boot/x86_64/archiso.img
}
menuentry 'archlinux iso i686' {
loopback loop ($isopart)$archiso
linux (loop)/arch/boot/i686/vmlinuz img_dev=$imgdevpath img_loop=$archiso
initrd (loop)/arch/boot/i686/archiso.img
}
menuentry 'ubuntu desktop iso' {
loopback loop ($isopart)$ubtdiso
linux (loop)/casper/vmlinuz.efi boot=casper iso-scan/filename=$ubtdiso noeject noprompt --
initrd (loop)/casper/initrd.lz
}
menuentry 'ubuntu server iso' {
loopback loop ($isopart)$ubtsiso
linux (loop)/install/vmlinuz file=/cdrom/preseed/ubuntu-server.seed iso-scan/filename=$ubtsiso noeject noprompt --
initrd (loop)/install/initrd.gz
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.