---
name: "grub-mknetdir"
section: "1"
platform: "linux"
package: "grub"
version: "2:2.16-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/grub-mknetdir"
---

# grub-mknetdir(1)

prepare a GRUB netboot directory.

## NAME

grub-mknetdir - prepare a GRUB netboot directory.

## SYNOPSIS

**grub-mknetdir** \[*OPTION*...\]

## DESCRIPTION

Prepares GRUB network boot images at net\_directory/subdir assuming net\_directory being TFTP root.

- **--appended-signature-size**=*SIZE*

  Add a note segment reserving SIZE bytes for an appended signature

- **--compress**=*no*\|xz\|gz\|lzo

  compress GRUB files \[optional\]

- **--disable-cli**

  disabled command line interface access

- **--disable-shim-lock**

  disable shim\_lock verifier

- **--dtb**=*FILE*

  embed a specific DTB

- **-d**, **--directory**=*DIR*

  use images and modules under DIR \[default=/usr/lib/grub/\<platform\>\]

- **--fonts**=*FONTS*

  install FONTS \[default=unicode\]

- **--install-modules**=*MODULES*

  install only MODULES and their dependencies \[default=all\]

- **-k**, **--pubkey**=*FILE*

  embed FILE as public key for signature checking

- **--locale-directory**=*DIR* use translations under DIR

  \[default=/usr/share/locale\]

- **--locales**=*LOCALES*

  install only LOCALES \[default=all\]

- **--modules**=*MODULES*

  pre-load specified modules MODULES

- **--sbat**=*FILE*

  SBAT metadata

- **--themes**=*THEMES*

  install THEMES \[default=starfield\]

- **-v**, **--verbose**

  print verbose messages.

- **-x**, **--x509key**=*FILE*

  embed FILE as an x509 certificate for appended signature checking

- **--core-compress**=*xz*\|none\|auto

  choose the compression to use for core image

- **--net-directory**=*DIR*

  root directory of TFTP server

- **--subdir**=*DIR*

  relative subdirectory on network server

- \-?, **--help**

  give this help list

- **--usage**

  give a short usage message

- **-V**, **--version**

  print program version

Mandatory or optional arguments to long options are also mandatory or optional for any corresponding short options.

Prepares GRUB network boot images at net\_directory/subdir assuming net\_directory being TFTP root.

## REPORTING BUGS

Report bugs to \<bug-grub@gnu.org\>.

## SEE ALSO

[**grub-mkimage**(1)](/grub-mkimage/1.md)

The full documentation for **grub-mknetdir** is maintained as a Texinfo manual.  If the **info** and **grub-mknetdir** programs are properly installed at your site, the command

-

  **info grub-mknetdir**

should give you access to the complete manual.
