GRUB-MKIMAGE(1)
β¨ NAME β¨
grub-mkimage β bestie, this is the one that makes a bootable image of GRUB. like, literally builds you a bootable GRUB image. π
πΈ SYNOPSIS πΈ
grub-mkimage [OPTION...] [OPTION]... [MODULES]
π DESCRIPTION π
Okay so real talk: make a bootable image of GRUB. that's the whole vibe. you hand it your options and your MODULES, it hands you back an image that boots. iconic behavior, honestly. π¦
π the options, bestie π
-c,--config=FILEβ embed FILE as an early config. like a lil pre-game config that's already inside the image. π-C,--compression=(xz|none|auto)β choose the compression to use for core image. pick your fighter:xz,none, orauto.--disable-cliβ disable command line interface access. no CLI for you. π--disable-shim-lockβ disableshim_lockverifier.-d,--directory=DIRβ use images and modules under DIR. default is/usr/lib/grub/<platform>. β-D,--dtb=FILEβ embed FILE as a device tree (DTB).-k,--pubkey=FILEβ embed FILE as public key for PGP signature checking. π-m,--memdisk=FILEβ embed FILE as a memdisk image.- Implies
-p (memdisk)/boot/gruband overrides any prefix supplied previously, but the prefix itself can be overridden by later options. yes this is a whole chain of "actually, no" and we respect it. π
- Implies
-n,--noteβ add NOTE segment for CHRP IEEE1275.-o,--output=FILEβ output a generated image to FILE. default isstdout.-O,--format=FORMATβ generate an image in FORMAT. available formats are:i386-coreboot,i386-multiboot,i386-pc,i386-xen_pvh,i386-pc-pxe,i386-pc-eltorito,i386-efi,i386-ieee1275,i386-qemu,x86_64-efi,i386-xen,x86_64-xen,mipsel-yeeloong-flash,mipsel-fuloong2f-flash,mipsel-loongson-elf,powerpc-ieee1275,sparc64-ieee1275-raw,sparc64-ieee1275-cdcore,sparc64-ieee1275-aout,ia64-efi,mips-arc,mipsel-arc,mipsel-qemu_mips-elf,mips-qemu_mips-flash,mipsel-qemu_mips-flash,mips-qemu_mips-elf,arm-uboot,arm-coreboot-vexpress,arm-coreboot-veyron,arm-efi,arm64-efi,loongarch64-efi,riscv32-efi,riscv64-efi- that's a LOT of formats and yes, you read all of them right. no skimming bestie, they're all real. π₯
-p,--prefix=DIRβ set prefix directory.-s,--sbat=FILEβ SBAT metadata.-S,--appended-signature-size=SIZEβ add a note segment reserving SIZE bytes for an appended signature.-v,--verboseβ print verbose messages.-x,--x509=FILEβ embed FILE as an x509 certificate for appended signature checking.-?,--helpβ give this help list.--usageβ give a short usage message.-V,--versionβ print program version.
heads up bestie: mandatory or optional arguments to long options are also mandatory or optional for any corresponding short options. the rule applies both ways, no cap. π
π REPORTING BUGS π
found a bug? report bugs to bug-grub@gnu.org. don't be shy, the maintainers wanna know. π«Ά
π SEE ALSO π
grub-install(8)grub-mkrescue(1)grub-mknetdir(8)
the full documentation for grub-mkimage is maintained as a Texinfo manual. if the info and grub-mkimage programs are properly installed at your site, the command
info grub-mkimage
should give you access to the complete manual. go read it, it's giving full lore. π
okay that's the whole page bestie, you're so welcome π this was GRUB 2.12, dated April 2026, and yeah it's page GRUB-MKIMAGE(1) β now go make a bootable image and slay. periodt. β¨π
π¦ where this page comes from
- fedora 43: grub2-tools 1:2.12-43.fc43 Β· GPL-3.0-or-later
- fedora 44: grub2-tools 1:2.12-56.fc44 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms