GRUB-MKSTANDALONE(1)
π GRUB-MKSTANDALONE(1) π
hi bestie!! so this page is GRUB-MKSTANDALONE, section 1, from the User Commands chapter, and it's genuinely one of the most useful little gremlins in the whole GRUB family. buckle up, we're building a standalone image and it's gonna be iconic π¦β¨
πΈ NAME πΈ
grub-mkstandalone β make a memdisk-based GRUB image. that's it. that's the whole vibe. memdisk-based means everything lives inside the image, no cap π
β¨ SYNOPSIS β¨
grub-mkstandalone [OPTION...] [OPTION] SOURCE...
π DESCRIPTION π
okay so the tea is: this tool generates a standalone image (containing all modules, yes ALL of them) in the format you select. it's giving "everything in one bag, i don't need your filesystem" energy π
here's every single flag, no skips, no cuts, we're doing this properly:
--appended-signature-size=SIZEβ adds a note segment that reservesSIZEbytes so an appended signature can live there later π--compress=no|xz|gz|lzoβ compress the GRUB files. it's optional, so like, do it if you want.--disable-cliβ disables command line interface access. no shell for you, bestie π«--disable-shim-lockβ disables theshim_lockverifier.--dtb=FILEβ embeds one specific DTB π³-d,--directory=DIRβ use images and modules underDIR. default is[default=/usr/lib/grub/<platform>]--fonts=FONTSβ installFONTS. default is[default=unicode]π€--install-modules=MODULESβ install onlyMODULESand their dependencies. default is[default=all](so yeah, default is literally everything)-k,--pubkey=FILEβ embedFILEas a public key for signature checking π--locale-directory=DIRβ use translations underDIR. default is[default=/usr/share/locale]--locales=LOCALESβ install onlyLOCALES. default is[default=all]π--modules=MODULESβ pre-load the specified modulesMODULES.--sbat=FILEβ SBAT metadata.--themes=THEMESβ installTHEMES. default is[default=starfield]β¨ (yes the pretty one)-v,--verboseβ print verbose messages. (note the period, it's in the original, i'm being faithful π«Ά)-x,--x509key=FILEβ embedFILEas an x509 certificate for signature checking π--core-compress=xz|none|autoβ choose the compression to use for the core image.-o,--output=FILEβ save output inFILE. [required] so like, don't forget it, fr fr π-O,--format=FILEβ generate an image inFORMAT. the available formats are, and i am listing every last one because we don't gatekeep:
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
-?,--helpβ give this help list π--usageβ give a short usage message.-V,--versionβ print program version.
real talk though: mandatory or optional arguments to long options are also mandatory or optional for any corresponding short options. so if the long one needs a value, the short one needs that same value. don't get caught slipping π
also, and this is the fun bit β Graft point syntax (E.g. /boot/grub/grub.cfg=./grub.cfg) is accepted π so you can map paths inside the image to files on your machine, iykyk.
π REPORTING BUGS π
found a bug? report it to <bug-grub@gnu.org>. be nice, they're doing their best π«Ά
π SEE ALSO π
grub-mkimage(1)β its sibling, equally slay
the full documentation for grub-mkstandalone is maintained as a Texinfo manual. if the info and grub-mkstandalone programs are properly installed at your site, this command:
info grub-mkstandalone
should give you access to the complete manual πβ¨
okay that's the whole page!! this was GRUB 2.12, dated April 2026, and the page is GRUB-MKSTANDALONE(1) β go forth and build your image, bestie, you're gonna eat π
ππΈ
π¦ where this page comes from
- fedora 43: grub2-tools-extra 1:2.12-43.fc43 Β· GPL-3.0-or-later
- fedora 44: grub2-tools-extra 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