Last active
June 6, 2019 13:41
-
-
Save harish2704/65f8a67e46262b831bc90f2a8a65d40f to your computer and use it in GitHub Desktop.
grub.cfg for live boot of custom usb drive
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 | |
menuentry "Try openSUSE Tumbleweed GNOME Live ISO" { | |
set gfxpayload=keep | |
set iso_path=/openSUSE-Tumbleweed-GNOME-Live-x86_64-Snapshot20180220-Media.iso | |
loopback loop0 ${iso_path} | |
echo Loading kernel... | |
linux (loop0)/boot/x86_64/loader/linux ${extra_cmdline} splash=silent quiet root=live:CDLABEL=openSUSE_Tumbleweed_GNOME_Live rd.live.image rd.live.overlay.persistent rd.live.overlay.cowfs=ext4 iso-scan/filename=${iso_path} | |
echo Loading initrd... | |
initrd (loop0)/boot/x86_64/loader/initrd | |
} | |
menuentry "Try Ubuntu 16.04 ISO" { | |
set gfxpayload=keep | |
set ubu_path=/ubuntu-16.04-desktop-amd64.iso | |
search.file $ubu_path cd_dev | |
loopback loop ($cd_dev)${ubu_path} | |
set root=(loop) | |
linux /casper/vmlinuz.efi file=/cdrom/preseed/ubuntu.seed boot=casper iso-scan/filename=${ubu_path} | |
initrd /casper/initrd.lz | |
} | |
menuentry "Try Ubuntu 14.04 ISO" { | |
set gfxpayload=keep | |
set ubu_path=/ubuntu-14.04-desktop-amd64.iso | |
search.file $ubu_path cd_dev | |
loopback loop ($cd_dev)${ubu_path} | |
set root=(loop) | |
linux /casper/vmlinuz.efi file=/cdrom/preseed/ubuntu.seed boot=casper iso-scan/filename=${ubu_path} | |
initrd /casper/initrd.lz | |
} | |
menuentry "Try Ubuntu 18.04 ISO" { | |
set gfxpayload=keep | |
set ubu_path=/ubuntu-18.04-desktop-amd64.iso | |
search.file $ubu_path cd_dev | |
loopback loop ($cd_dev)${ubu_path} | |
set root=(loop) | |
linux /casper/vmlinuz file=/cdrom/preseed/ubuntu.seed boot=casper iso-scan/filename=${ubu_path} | |
initrd /casper/initrd.lz | |
} | |
menuentry "Try Debian 9.1 ISO" { | |
set deb_path=/debian-live-9.0.1-amd64-gnome.iso | |
search.file $deb_path cd_dev | |
probe -u -s cd_uuid ${cd_dev} | |
loopback loop ($cd_dev)${deb_path} | |
set root=(loop) | |
linux /live/vmlinuz-4.9.0-3-amd64 boot=live components "findiso=${deb_path}" | |
initrd /live/initrd.img-4.9.0-3-amd64 | |
} | |
menuentry "Try Debian testing ISO" { | |
set deb_path=/debian-live-testing-amd64-gnome.iso | |
search.file $deb_path cd_dev | |
probe -u -s cd_uuid ${cd_dev} | |
loopback loop ($cd_dev)${deb_path} | |
set root=(loop) | |
linux /live/vmlinuz-4.13.0-1-amd64 boot=live components "findiso=${deb_path}" | |
initrd /live/initrd.img-4.13.0-1-amd64 | |
} | |
menuentry 'Try Fedora-Workstation-Live 26 ISO' { | |
set deb_path=/Fedora-Workstation-Live-x86_64-26-1.5.iso | |
search.file $deb_path cd_dev | |
probe -u -s cd_uuid ${cd_dev} | |
loopback loop ($cd_dev)${deb_path} | |
set root=(loop) | |
linux /images/pxeboot/vmlinuz root=live:CDLABEL=Fedora-WS-Live-26-1-5 rd.live.image iso-scan/filename="${deb_path}" | |
initrd /images/pxeboot/initrd.img | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment