Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 3d188c41 authored by Luc Sarzyniec's avatar Luc Sarzyniec
Browse files

[netboot] Bugfix: add new lines (after the header and before the EOF) in PXE profiles

Change-Id: I44a0dc967749201ea65b563b8be763e65e74f29f
parent 92788793
No related branches found
No related tags found
1 merge request!1simplify Debian packaging
......@@ -175,10 +175,10 @@ module NetBoot
end
def labelize(header,kind,profile,args=[])
header+
"#{header}\n"\
"DEFAULT #{kind}\n"\
"LABEL #{kind}\n"\
+ profile.collect{|line| "\t#{line}"}.join("\n")
"#{profile.collect{|line| "\t#{line}"}.join("\n")}\n"
end
def boot_chain(pxebin)
......@@ -269,7 +269,9 @@ module NetBoot
end
def labelize(header,kind,profile,args=[])
"#!ipxe\n#{header}\n#{profile.join("\n")}"
"#!ipxe\n"\
"#{header}\n"\
"#{profile.join("\n")}\n"
end
def boot_chain(pxebin)
......@@ -324,11 +326,12 @@ module NetBoot
def labelize(header,kind,profile,args=[])
header += "\ntimeout=0\n" unless header.include?("timeout")
header +
"#{header}\n"\
"default=0\n"\
"menuentry #{kind} {\n"\
"#{profile.collect{|line| "\t#{line}"}.join("\n")}\n"\
"}"
"}\n"
end
def boot_chain(pxebin)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment