Created
May 1, 2017 05:41
-
-
Save harish2704/298a1eb9ff7a4f207ffc943124514514 to your computer and use it in GitHub Desktop.
Boot ubuntu iso file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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