]> rtime.felk.cvut.cz Git - novaboot.git/blobdiff - novaboot
tftpd: Add call to grub-mknetdir
[novaboot.git] / novaboot
index 7e0bcb63fb4a65181ef6ab3e75ee16d98833539b..3403bfd063db43cdc580eb2d6f8331a66bb3c065 100755 (executable)
--- 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