Skip to content

Instantly share code, notes, and snippets.

@Lewiscowles1986 Lewiscowles1986/grub.cfg
Last active Aug 28, 2018

Embed
What would you like to do?
multiboot USB Linux goodness
# This grub.cfg file was created by Lance http://www.pendrivelinux.com
# Suggested Entries and the suggestor, if available, will also be noted.
set timeout=10
set default=0
set gfxpayload=keep
submenu "Ubuntu" {
menuentry "Ubuntu Desktop ISO" {
set isofile=/ubuntu.iso
loopback loop $isofile
linux (loop)/casper/vmlinuz boot=casper iso-scan/filename=$isofile noeject noprompt splash --
initrd (loop)/casper/initrd.lz
}
menuentry "Ubuntu Server ISO" {
set isofile=/ubuntu-server.iso
loopback loop $isofile
linux (loop)/casper/vmlinuz boot=casper iso-scan/filename=$isofile noeject noprompt splash --
initrd (loop)/casper/initrd
}
menuentry "Ubuntu Server ISO - OEM install (for manufacturers)" {
set isofile=/ubuntu-server.iso
loopback loop $isofile
linux (loop)/casper/vmlinuz boot=casper iso-scan/filename=$isofile noeject only-ubiquity quiet splash oem-config/enable=true ---
initrd (loop)/casper/initrd
}
}
menuentry "OpenSUSE Leap ISO - Blacklist + Nomodeset nouveau" {
set isofile=/openSUSE-Leap.iso
set root=(hd0,1)
loopback loop $isofile
echo 'Loading kernel ...'
linux (loop)/boot/x86_64/loader/linux iso-scan/filename=$isofile noeject install=hd:$isofile rd.driver.blacklist=nouveau nouveau.modeset=0 splash=silent
echo 'Loading initial ramdisk ...'
initrd (loop)/boot/x86_64/loader/initrd
}
submenu "Fedora" {
menuentry "Fedora Desktop ISO" {
set isofile=/fedora.iso
loopback loop $isofile
linux (loop)/images/pxeboot/vmlinuz iso-scan/filename=$isofile noeject root=live:CDLABEL=Fedora-WS-Live-28-1-1 rd.live.image quiet
initrd (loop)/images/pxeboot/initrd.img
}
menuentry "Fedora Server ISO" {
set isofile=/fedora-server.iso
loopback loop $isofile
linux /images/pxeboot/vmlinuz iso-scan/filename=$isofile noeject inst.stage2=hd:LABEL=Fedora-S-dvd-x86_64-28 quiet
initrd /images/pxeboot/initrd.img
}
}
submenu "Debian" {
menuentry "Debian ISO - Gnome Live" {
set isofile=/debian-live-gnome.iso
loopback loop $isofile
set root=(hd0,1)
linux (loop)/live/vmlinuz-4.9.0-7-amd64 findiso=$isofile boot=live components memtest noapic noapm nodma nomce nolapic nomodeset nosmp nosplash vga=normal
initrd (loop)/live/initrd.img-4.9.0-7-amd64
}
menuentry "Debian ISO - KDE Live" {
set isofile=/debian-live-kde.iso
loopback loop $isofile
set root=(hd0,1)
linux (loop)/live/vmlinuz-4.9.0-7-amd64 findiso=$isofile boot=live components memtest noapic noapm nodma nomce nolapic nomodeset nosmp nosplash vga=normal
initrd (loop)/live/initrd.img-4.9.0-7-amd64
}
menuentry "Debian ISO - Mate Live" {
set isofile=/debian-live-mate.iso
loopback loop $isofile
set root=(hd0,1)
linux (loop)/live/vmlinuz-4.9.0-7-amd64 findiso=$isofile boot=live components memtest noapic noapm nodma nomce nolapic nomodeset nosmp nosplash vga=normal
initrd (loop)/live/initrd.img-4.9.0-7-amd64
}
menuentry "Debian ISO - LXDE Live" {
set isofile=/debian-live-lxde.iso
loopback loop $isofile
set root=(hd0,1)
linux (loop)/live/vmlinuz-4.9.0-7-amd64 findiso=$isofile boot=live components memtest noapic noapm nodma nomce nolapic nomodeset nosmp nosplash vga=normal
initrd (loop)/live/initrd.img-4.9.0-7-amd64
}
menuentry "Debian ISO - XFCE Live" {
set isofile=/debian-live-xfce.iso
loopback loop $isofile
set root=(hd0,1)
linux (loop)/live/vmlinuz-4.9.0-7-amd64 findiso=$isofile boot=live components memtest noapic noapm nodma nomce nolapic nomodeset nosmp nosplash vga=normal
initrd (loop)/live/initrd.img-4.9.0-7-amd64
}
}
menuentry "Arch" {
set isofile=/archlinux.iso
loopback loop $isofile
set root=(hd0,1)
linux (loop)/arch/boot/x86_64/vmlinuz img_dev=/dev/sda1 img_loop=$isofile earlymodules=loop noeject
initrd (loop)/arch/boot/intel_ucode.img (loop)/arch/boot/x86_64/archiso.img
}
menuentry "Memtest 86+" {
linux16 /memtest86+.bin
}
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.