Project

General

Profile

« Previous | Next » 

Revision d4b60b36

Added by Timo Goebel almost 8 years ago

fixes #15985 - Pxegrub2 tftp filename prefix

View differences:

modules/tftp/server.rb
["#{pxeconfig_dir}/grub.cfg"]
end
def pxeconfig_file mac
["#{pxeconfig_dir}/grub.cfg-"+mac.gsub(/:/,'-').downcase]
["#{pxeconfig_dir}/grub.cfg-01-"+mac.gsub(/:/,'-').downcase]
end
end
test/tftp/tftp_server_test.rb
def setup_paths
@subject = Proxy::TFTP::Pxegrub2.new
@pxe_config_files = ["grub2/grub.cfg-aa-bb-cc-dd-ee-ff"]
@pxe_config_files = ["grub2/grub.cfg-01-aa-bb-cc-dd-ee-ff"]
@pxe_default_files = ["grub2/grub.cfg"]
end
end

Also available in: Unified diff