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 22, 2023
1 parent ec8af49 commit 938bb63
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/tftp/server.rb
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,8 @@ def setup_bootloader(mac, os)
raise "File #{shim_binary_path} not found." unless File.exist?(shim_binary_path)
pxeconfig_dir_mac = pxeconfig_dir(mac)
FileUtils.mkdir_p(pxeconfig_dir_mac)
FileUtils.cp("#{grub_binary_path}", "#{pxeconfig_dir_mac}/grubx64.efi")
FileUtils.cp("#{shim_binary_path}", "#{pxeconfig_dir_mac}/shimx64.efi")
FileUtils.cp(grub_binary_path.to_s, "#{pxeconfig_dir_mac}/grubx64.efi")
FileUtils.cp(shim_binary_path.to_s, "#{pxeconfig_dir_mac}/shimx64.efi")
File.write(File.join(pxeconfig_dir_mac, 'targetos'), os)
end

Expand Down

0 comments on commit 938bb63

Please sign in to comment.