# GRUB-MKNETDIR - prepare a GRUB netboot directory. - man(1) - [phpMan]


*Source: tldr-pages*

---

[_GRUB-MKNETDIR_(1)](https://www.chedong.com/phpMan.php/man/GRUB-MKNETDIR/1/markdown)                            User Commands                           [_GRUB-MKNETDIR_(1)](https://www.chedong.com/phpMan.php/man/GRUB-MKNETDIR/1/markdown)

## 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.

       **--compress**=_no_|xz|gz|lzo
              compress GRUB files [optional]

### --disable-shim-lock
              disable shim_lock verifier

       **--dtb**=_FILE_
              embed a specific DTB

### -d --directory
              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
              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.

       **--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 corre‐
       sponding 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)](https://www.chedong.com/phpMan.php/man/grub-mkimage/1/markdown)

       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.

GRUB 2.12-1ubuntu7.3                         March 2025                             [_GRUB-MKNETDIR_(1)](https://www.chedong.com/phpMan.php/man/GRUB-MKNETDIR/1/markdown)
