]> rtime.felk.cvut.cz Git - novaboot.git/commitdiff
tftpd: Add call to grub-mknetdir
authoralberand <albershteyn.andrey@gmail.com>
Sun, 28 Feb 2021 19:55:54 +0000 (20:55 +0100)
committerMichal Sojka <michal.sojka@cvut.cz>
Mon, 28 Jun 2021 06:18:02 +0000 (08:18 +0200)
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