Prepare a boot directory
Choose useful modules
Commented list: Modules
Download packages
current
grub2-common |
fichiers v2 communs |
grub-common |
fichiers v2 et v1 communs |
grub-efi-amd64 |
architecture EFI avec installation |
grub-efi-amd64-bin |
architecture EFI sans installation |
grub-pc |
architecture BIOS avec installation |
grub-pc-bin |
architecture BIOS avec installation |
legacy
grub-efi |
transitional |
grub-legacy |
maintenance |
Put up a functional directory
boot/grub/grub.cfg
search --set --fs-uuid "YYYY-MM-DD-hh-mm-ss-cc"
Or at worst:
search --set --label "LA_BEL"
Generate a modular image
/bin/tar
tar
--create
--dereference
--file='grub.tar'
--verbose
boot
moddep.lst
kernel.img
lzma_decompress.img
diskboot.img
*.mod
/usr/bin/grub-mkimage
grub-mkimage
--directory='i386-pc'
--format='i386-pc'
--memdisk='grub.tar'
--output='i386-pc/core.img'
modules…
i386-pc-eltorito for ISO encapsulation
Make a device bootable
boot.img
core.img
/usr/sbin/grub-bios-setup
grub-bios-setup \
--directory="i386-pc" \
/dev/sd?