Skip to content

Commit

Permalink
Refs #36834 - 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 41c2a8f commit 6c2b0a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/models/concerns/orchestration/tftp.rb
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ def validate_tftp
return unless tftp? || tftp6?
return unless host.operatingsystem
pxe_kind = host.operatingsystem.pxe_loader_kind(host)
if pxe_kind.to_s == "PXEGrub2TargetOS"
if isPXEGrub2TargetOS(pxe_kind)
pxe_kind = "PXEGrub2".to_sym
end
if pxe_kind && host.provisioning_template({:kind => pxe_kind}).nil?
Expand All @@ -156,7 +156,7 @@ def queue_tftp
def queue_tftp_create
pxe_kind = host.operatingsystem.pxe_loader_kind(host)
host.operatingsystem.template_kinds.each do |kind|
if kind.to_s == "PXEGrub2" && pxe_kind.to_s == "PXEGrub2TargetOS"
if kind.to_s == "PXEGrub2" && isPXEGrub2TargetOS(pxe_kind)
queue.create(:name => _("Deploy TFTP SecureBoot %{kind} config for %{host}") % {:kind => kind, :host => self}, :priority => 20, :action => [self, :setTFTP, pxe_kind])
end
queue.create(:name => _("Deploy TFTP %{kind} config for %{host}") % {:kind => kind, :host => self}, :priority => 20, :action => [self, :setTFTP, kind])
Expand Down

0 comments on commit 6c2b0a8

Please sign in to comment.