Skip to content

Instantly share code, notes, and snippets.

@gylns
Last active October 17, 2016 08:18
Show Gist options
  • Save gylns/c7033e3cb7b4604771ada10a66a935bb to your computer and use it in GitHub Desktop.
Save gylns/c7033e3cb7b4604771ada10a66a935bb to your computer and use it in GitHub Desktop.

livecd

probe -u root
set timeout=10
set default=0

menuentry "Run Ubuntu Live ISO" {
 set isofile=/ISO/ubuntu-16.04-desktop-amd64.iso
 loopback loop ${isofile}
 linux (loop)/casper/vmlinuz.efi boot=casper iso-scan/filename=${isofile} splash --
 initrd (loop)/casper/initrd.lz
}

menuentry "Gentoo Minimal CD" {
    set iso=/install-amd64-minimal-20160825.iso
    loopback loop $iso
    linux (loop)/isolinux/gentoo root=/dev/ram0 init=/linuxrc looptype=squashfs loop=/image.squashfs isoboot=$iso cdroot initrd=gentoo.igz vga=791
    initrd (loop)/isolinux/gentoo.igz
}

set root=(hd1,msdos2)
ntldr /bootmgr
boot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment