Skip to content

Instantly share code, notes, and snippets.

@joekickass
Created July 4, 2012 08:56
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 joekickass/3046193 to your computer and use it in GitHub Desktop.
Save joekickass/3046193 to your computer and use it in GitHub Desktop.
GRUB multi-os usb-stick configuration
cat << EOF > /mnt/boot/grub/grub.cfg
menuentry "Ubuntu MinimalCD 12.04 64bit" {
set gfxpayload=keep
loopback loop /boot/iso/ubuntu-12.04-desktop-amd64.iso
linux (loop)/linux -- quiet
initrd (loop)/initrd.gz
}
menuentry "Debian netinst 6.0.5 64bit" {
loopback loop /boot/iso/debian-6.0.5-amd64-netinst.iso
linux (loop)/install.amd/vmlinuz vga=normal --
initrd (loop)/install.amd/initrd.gz
}
menuentry "Gentoo minimal 20120621 64bit" {
set isofile="/boot/iso/install-amd64-minimal-20120621.iso"
loopback loop $isofile
linux (loop)/isolinux/gentoo root=/dev/ram0 init=/linuxrc nokeymap cdroot cdboot looptype=squashfs loop=/image.squashfs initrd=gentoo.igz vga=791 usbcore.autosuspend=1 console=tty0 rootdelay=10 isoboot=$isofile
initrd (loop)/isolinux/gentoo.igz
}
EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment