From: alberand Date: Sun, 28 Feb 2021 19:55:54 +0000 (+0100) Subject: tftpd: Add call to grub-mknetdir X-Git-Tag: 20211022~6^2~8 X-Git-Url: https://rtime.felk.cvut.cz/gitweb/novaboot.git/commitdiff_plain/db28e95f962d65f6d25034a9b336b9dd9b7559f6 tftpd: Add call to grub-mknetdir --- diff --git a/novaboot b/novaboot index 7e0bcb6..3403bfd 100755 --- a/novaboot +++ b/novaboot @@ -1161,6 +1161,10 @@ host server { if (defined $dhcp_tftp || defined $tftp) { $tftp_port ||= 69; + + # Prepare a GRUB netboot directory + system_verbose("grub-mknetdir --net-directory=$builddir") if (defined $grub2_config); + # Generate TFTP mapfile open(my $fh, '>', "$builddir/mapfile"); print $fh "# Some PXE clients (mainly UEFI) have bug. They add zero byte to the end of the