2018-04-30

Slitaz -- bootx64.efi / grub-mkimage



bootx64.efi
grub-mkimage
Make a bootable image of GRUB.


 


root@slitaz:~# uname -a
Linux slitaz 4.16.0-slitaz #2 SMP Thu Apr 5 11:07:34 UTC 2018 x86_64 GNU/Linux
 
root@slitaz:~# grub-mkimage --help | egrep 'Make|DIR|output|FORMAT|x86_64'
Make a bootable image of GRUB.
  -d, --directory=DIR        use images and modules under DIR
  -o, --output=FILE          output a generated image to FILE [default=stdout]
  -O, --format=FORMAT        generate an image in FORMAT
                             i386-ieee1275, i386-qemu, x86_64-efi, i386-xen,
                             x86_64-xen, mipsel-yeeloong-flash,
  -p, --prefix=DIR           set prefix directory

root@slitaz:~# grub-mkimage -d /usr/lib/grub/x86_64-efi -o bootx64.efi -O x86_64-efi -p /boot/grub \
> ntfs hfs appleldr boot cat efi_gop efi_uga elf fat hfsplus \
> iso9660 linux keylayouts memdisk minicmd part_apple ext2 extcmd \
> xfs xnu part_bsd part_gpt search search_fs_file chain btrfs \
> loadbios loadenv lvm minix minix2 reiserfs memrw mmap msdospart \
> scsi loopback normal configfile gzio all_video efi_gop efi_uga \
> gfxterm gettext echo

root@slitaz:~# ls -l bootx64.efi
-rw-r--r-- 1 root root 905728 Apr 30 02:33 bootx64.efi

root@slitaz:~# file bootx64.efi
bootx64.efi: PE32+ executable (EFI application) x86-64 (stripped to external PDB), for MS Windows
root@slitaz:~#

----

grub2 - receipt

http://cook.slitaz.org/next64/grub2/receipt
    efi)
        export EFI_ARCH=i386
        ./configure \
            --with-platform=efi \
            --target=$EFI_ARCH \
            --program-prefix="" \
            $CONFIGURE_ARGS &&
        make clean &&
        make $MAKEFLAGS || return 1

        cd grub-core
        ../grub-mkimage \
            -d . \
            -o ../bootia32.efi \
            -O i386-efi \
            -p /boot/grub \
            ntfs hfs appleldr boot cat efi_gop efi_uga elf fat hfsplus \
            iso9660 linux keylayouts memdisk minicmd part_apple ext2 extcmd \
            xfs xnu part_bsd part_gpt search search_fs_file chain btrfs \
            loadbios loadenv lvm minix minix2 reiserfs memrw mmap msdospart \
            scsi loopback normal configfile gzio all_video efi_gop efi_uga \
            gfxterm gettext echo boot chain || return 1

            install -Dm644 $src/bootia32.efi $install/boot/efi/boot/bootia32.efi