{
    "mode": "man",
    "parameter": "GRUB-MKIMAGE",
    "section": "1",
    "url": "https://www.chedong.com/phpMan.php/man/GRUB-MKIMAGE/1/json",
    "generated": "2026-06-13T22:59:28Z",
    "synopsis": "grub-mkimage [OPTION...] [OPTION]... [MODULES]",
    "sections": {
        "NAME": {
            "content": "grub-mkimage - make a bootable image of GRUB\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "grub-mkimage [OPTION...] [OPTION]... [MODULES]\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "Make a bootable image of GRUB.\n",
            "subsections": [
                {
                    "name": "-c --config",
                    "content": "embed FILE as an early config\n",
                    "flag": "-c",
                    "long": "--config"
                },
                {
                    "name": "-C --compression=",
                    "content": "choose the compression to use for core image\n",
                    "flag": "-C"
                },
                {
                    "name": "-d --directory",
                    "content": "use images and modules under DIR [default=/usr/lib/grub/<platform>]\n",
                    "flag": "-d",
                    "long": "--directory"
                },
                {
                    "name": "--disable-shim-lock",
                    "content": "disable shimlock verifier\n",
                    "long": "--disable-shim-lock"
                },
                {
                    "name": "-D --dtb",
                    "content": "embed FILE as a device tree (DTB)\n",
                    "flag": "-D",
                    "long": "--dtb"
                },
                {
                    "name": "-k --pubkey",
                    "content": "embed FILE as public key for signature checking\n",
                    "flag": "-k",
                    "long": "--pubkey"
                },
                {
                    "name": "-m --memdisk",
                    "content": "embed FILE as a memdisk image\n\nImplies `-p (memdisk)/boot/grub' and overrides\n\nany prefix supplied previously, but the prefix\nitself can be overridden by later options\n",
                    "flag": "-m",
                    "long": "--memdisk"
                },
                {
                    "name": "-n --note",
                    "content": "add NOTE segment for CHRP IEEE1275\n",
                    "flag": "-n",
                    "long": "--note"
                },
                {
                    "name": "-o --output",
                    "content": "output a generated image to FILE [default=stdout]\n",
                    "flag": "-o",
                    "long": "--output"
                },
                {
                    "name": "-O --format",
                    "content": "generate an image in FORMAT available formats: i386-coreboot, i386-multiboot, i386-pc,\ni386-xenpvh,  i386-pc-pxe,  i386-pc-eltorito,  i386-efi,  i386-ieee1275,   i386-qemu,\nx8664-efi,   i386-xen,   x8664-xen,  mipsel-yeeloong-flash,  mipsel-fuloong2f-flash,\nmipsel-loongson-elf, powerpc-ieee1275, sparc64-ieee1275-raw,  sparc64-ieee1275-cdcore,\nsparc64-ieee1275-aout,    ia64-efi,    mips-arc,   mipsel-arc,   mipsel-qemumips-elf,\nmips-qemumips-flash, mipsel-qemumips-flash, mips-qemumips-elf, arm-uboot, arm-core‐\nboot-vexpress, arm-coreboot-veyron, arm-efi, arm64-efi, riscv32-efi, riscv64-efi\n",
                    "flag": "-O",
                    "long": "--format"
                },
                {
                    "name": "-p --prefix",
                    "content": "set prefix directory\n",
                    "flag": "-p",
                    "long": "--prefix"
                },
                {
                    "name": "-s --sbat",
                    "content": "SBAT metadata\n",
                    "flag": "-s",
                    "long": "--sbat"
                },
                {
                    "name": "-v --verbose",
                    "content": "print verbose messages.\n\n-?, --help\ngive this help list\n",
                    "flag": "-v",
                    "long": "--verbose"
                },
                {
                    "name": "--usage",
                    "content": "give a short usage message\n",
                    "long": "--usage"
                },
                {
                    "name": "-V --version",
                    "content": "print program version\n\nMandatory or optional arguments to long options are also mandatory or optional for any corre‐\nsponding short options.\n",
                    "flag": "-V",
                    "long": "--version"
                }
            ]
        },
        "REPORTING BUGS": {
            "content": "Report bugs to <bug-grub@gnu.org>.\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "grub-install(8), grub-mkrescue(1), grub-mknetdir(8)\n\nThe full documentation for grub-mkimage is maintained as a Texinfo manual.  If the  info  and\ngrub-mkimage programs are properly installed at your site, the command\n\ninfo grub-mkimage\n\nshould give you access to the complete manual.\n\n\n\nGRUB 2.06-2ubuntu7.2                        December 2022                            GRUB-MKIMAGE(1)",
            "subsections": []
        }
    },
    "summary": "grub-mkimage - make a bootable image of GRUB",
    "flags": [
        {
            "flag": "-c",
            "long": "--config",
            "arg": null,
            "description": "embed FILE as an early config"
        },
        {
            "flag": "-C",
            "long": null,
            "arg": null,
            "description": "choose the compression to use for core image"
        },
        {
            "flag": "-d",
            "long": "--directory",
            "arg": null,
            "description": "use images and modules under DIR [default=/usr/lib/grub/<platform>]"
        },
        {
            "flag": "",
            "long": "--disable-shim-lock",
            "arg": null,
            "description": "disable shimlock verifier"
        },
        {
            "flag": "-D",
            "long": "--dtb",
            "arg": null,
            "description": "embed FILE as a device tree (DTB)"
        },
        {
            "flag": "-k",
            "long": "--pubkey",
            "arg": null,
            "description": "embed FILE as public key for signature checking"
        },
        {
            "flag": "-m",
            "long": "--memdisk",
            "arg": null,
            "description": "embed FILE as a memdisk image Implies `-p (memdisk)/boot/grub' and overrides any prefix supplied previously, but the prefix itself can be overridden by later options"
        },
        {
            "flag": "-n",
            "long": "--note",
            "arg": null,
            "description": "add NOTE segment for CHRP IEEE1275"
        },
        {
            "flag": "-o",
            "long": "--output",
            "arg": null,
            "description": "output a generated image to FILE [default=stdout]"
        },
        {
            "flag": "-O",
            "long": "--format",
            "arg": null,
            "description": "generate an image in FORMAT available formats: i386-coreboot, i386-multiboot, i386-pc, i386-xenpvh, i386-pc-pxe, i386-pc-eltorito, i386-efi, i386-ieee1275, i386-qemu, x8664-efi, i386-xen, x8664-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-qemumips-elf, mips-qemumips-flash, mipsel-qemumips-flash, mips-qemumips-elf, arm-uboot, arm-core‐ boot-vexpress, arm-coreboot-veyron, arm-efi, arm64-efi, riscv32-efi, riscv64-efi"
        },
        {
            "flag": "-p",
            "long": "--prefix",
            "arg": null,
            "description": "set prefix directory"
        },
        {
            "flag": "-s",
            "long": "--sbat",
            "arg": null,
            "description": "SBAT metadata"
        },
        {
            "flag": "-v",
            "long": "--verbose",
            "arg": null,
            "description": "print verbose messages. -?, --help give this help list"
        },
        {
            "flag": "",
            "long": "--usage",
            "arg": null,
            "description": "give a short usage message"
        },
        {
            "flag": "-V",
            "long": "--version",
            "arg": null,
            "description": "print program version Mandatory or optional arguments to long options are also mandatory or optional for any corre‐ sponding short options."
        }
    ],
    "examples": [],
    "see_also": [
        {
            "name": "grub-install",
            "section": "8",
            "url": "https://www.chedong.com/phpMan.php/man/grub-install/8/json"
        },
        {
            "name": "grub-mkrescue",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/grub-mkrescue/1/json"
        },
        {
            "name": "grub-mknetdir",
            "section": "8",
            "url": "https://www.chedong.com/phpMan.php/man/grub-mknetdir/8/json"
        }
    ]
}