Module: ForemanIpxe::OperatingsystemExtensions::ClassMethods

Defined in:
app/models/concerns/foreman_ipxe/operatingsystem_extensions.rb

Instance Method Summary collapse

Instance Method Details

#all_loaders_map(*args) ⇒ Object



8
9
10
11
12
# File 'app/models/concerns/foreman_ipxe/operatingsystem_extensions.rb', line 8

def all_loaders_map(*args)
  super
    .merge('iPXE Chain BIOS' => 'undionly.kpxe', 'iPXE Chain UEFI' => 'ipxe.efi', 'iPXE' => nil)
    .freeze
end

#boot_filename(host = nil) ⇒ Object



14
15
16
17
# File 'app/models/concerns/foreman_ipxe/operatingsystem_extensions.rb', line 14

def boot_filename(host = nil)
  return host.foreman_url('iPXE') if host.pxe_loader == 'iPXE'
  super(host)
end