Skip to content

Commit

Permalink
Refs #36833 - New PXE loader "Grub2 UEFI SecureBoot (target OS)"
Browse files Browse the repository at this point in the history
  • Loading branch information
goarsna committed Nov 2, 2023
1 parent 3394671 commit 3524f8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/tftp/server.rb
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ def setup_bootloader(mac, os)
bootloader_directory = (Proxy::TFTP::Plugin.settings.bootloader_universe || "/usr/local/share/bootloader-universe")
FileUtils.cp("#{bootloader_directory}/#{os}/grubx64.efi", "#{pxeconfig_dir_mac}/grubx64.efi")
FileUtils.cp("#{bootloader_directory}/#{os}/shimx64.efi", "#{pxeconfig_dir_mac}/shimx64.efi")
File.open("#{pxeconfig_dir_mac}/targetos", 'w') { |f| f.write(os) }
File.write(File.join(pxeconfig_dir(mac), 'targetos'), os)
end

def pxeconfig_dir(mac = nil)
Expand Down

0 comments on commit 3524f8a

Please sign in to comment.