Revision 24e943d7
Added by Konstantin Orekhov almost 8 years ago
modules/tftp/server.rb | ||
---|---|---|
end
|
||
end
|
||
|
||
class Ipxe < Server
|
||
def pxeconfig_dir
|
||
"#{path}/pxelinux.cfg"
|
||
end
|
||
def pxe_default
|
||
["#{pxeconfig_dir}/default.ipxe"]
|
||
end
|
||
def pxeconfig_file mac
|
||
["#{pxeconfig_dir}/01-"+mac.gsub(/:/,"-").downcase+".ipxe"]
|
||
end
|
||
end
|
||
|
||
def self.fetch_boot_file dst, src
|
||
filename = boot_filename(dst, src)
|
||
destination = Pathname.new(File.expand_path(filename, Proxy::TFTP::Plugin.settings.tftproot)).cleanpath
|
Also available in: Unified diff
fixes #16009 - added support for native iPXE variant