Project

General

Profile

« Previous | Next » 

Revision 8f7c12b3

Added by Lukas Zapletal about 7 years ago

Fixes #19632 - changed shim and grub1 PXE names

View differences:

app/models/concerns/pxe_loader_support.rb
"None" => "",
"PXELinux BIOS" => "pxelinux.0",
"PXELinux UEFI" => "pxelinux.efi",
"Grub UEFI" => "grub/boot#{precision}.efi",
"Grub UEFI SecureBoot" => "grub/shim.efi",
"Grub UEFI" => "grub/grub#{precision}.efi",
"Grub2 UEFI" => "grub2/grub#{precision}.efi",
"Grub2 UEFI SecureBoot" => "grub2/shim.efi"
"Grub2 UEFI SecureBoot" => "grub2/shim#{precision}.efi"
}.freeze
end
test/models/concerns/pxe_loader_support_test.rb
end
test "PXEGrub is found for given filename" do
@host.pxe_loader = "grub/bootx64.efi"
@host.pxe_loader = "grub/grubx64.efi"
assert_equal :PXEGrub, @subject.pxe_loader_kind(@host)
end
......
assert_equal :PXEGrub2, @subject.pxe_loader_kind(@host)
end
test "PXEGrub2 is found for shimx64.efi filename" do
@host.pxe_loader = "grub2/shimx64.efi"
assert_equal :PXEGrub2, @subject.pxe_loader_kind(@host)
end
test "PXEGrub2 is found for shimia32.efi filename" do
@host.pxe_loader = "grub2/shimia32.efi"
assert_equal :PXEGrub2, @subject.pxe_loader_kind(@host)
end
test "PXELinux is found for given loader name" do
@host.pxe_loader = "PXELinux UEFI"
assert_equal :PXELinux, @subject.pxe_loader_kind(@host)

Also available in: Unified diff