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 reserves SIZE bytes 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 the shim_lock verifier.
  • --dtb=FILE β€” embeds one specific DTB 🌳
  • -d, --directory=DIR β€” use images and modules under DIR. default is [default=/usr/lib/grub/<platform>]
  • --fonts=FONTS β€” install FONTS. default is [default=unicode] πŸ”€
  • --install-modules=MODULES β€” install only MODULES and their dependencies. default is [default=all] (so yeah, default is literally everything)
  • -k, --pubkey=FILE β€” embed FILE as a public key for signature checking πŸ”‘
  • --locale-directory=DIR β€” use translations under DIR. default is [default=/usr/share/locale]
  • --locales=LOCALES β€” install only LOCALES. default is [default=all] 🌍
  • --modules=MODULES β€” pre-load the specified modules MODULES.
  • --sbat=FILE β€” SBAT metadata.
  • --themes=THEMES β€” install THEMES. 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 β€” embed FILE as 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 in FILE. [required] so like, don't forget it, fr fr 😭
  • -O, --format=FILE β€” generate an image in FORMAT. 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 πŸ‘€

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