Skip to content

Instantly share code, notes, and snippets.

@harish2704
Created May 1, 2017 05:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save harish2704/298a1eb9ff7a4f207ffc943124514514 to your computer and use it in GitHub Desktop.
Save harish2704/298a1eb9ff7a4f207ffc943124514514 to your computer and use it in GitHub Desktop.
Boot ubuntu iso file
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
# File name of ISO file
set ubu_path=/ubuntu-16.04-desktop-amd64.iso
menuentry "Try Ubuntu without installing Failsafe" {
# Search for iso file in all paritions and set the partition as root
search -f -s root $ubu_path
# Create a new loopback ( virtual drive ) from is file
loopback loop0 ${ubu_path}
# Set new loopback device as root
set root=(loop0)
set gfxpayload=keep
linux /casper/vmlinuz.efi file=/cdrom/preseed/ubuntu.seed boot=casper iso-scan/filename=${ubu_path} vga=normal
initrd /casper/initrd.lz
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment