- Format the stick with FAT32, mount and go to the mountpoint (
./
refers to your mountpoint) - Create your
grub.cfg
(example below) in./boot/grub/grub.cfg
sudo grub-install --no-floppy --boot-directory=./boot /dev/sdx
(use the right device, duh)- Test it with
sudo qemu-system-x86_64 -m 512 /dev/sdx
This will show you your menu, but obviously nothing will boot. Create ./iso
(or whatever you called it in your grub.cfg
) and dump some images into it.
The exact versions will not matter (get the paths right), but the distribution most probably will. The grub.cfg
below includes the kernel lines GRUB needs to boot Debian, Ubuntu or Archlinux Installers as well as the GRML Live System from http://grml.org/. These are the ones I need, if you want some more/others try the comments below this gist or have fun picking together working GRUB kernel line magic :)
PS: Beware a long-standing bug in the Debian-Installer which causes the bootloader to be written to /dev/sda
, which i