Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
092e2dec
Commit
092e2dec
authored
Nov 25, 2014
by
Mike Hibler
Browse files
Don't clobber our carefully crafted pxelinux config files.
parent
d0a5f9cd
Changes
1
Hide whitespace changes
Inline
Side-by-side
db/dhcpd_makeconf.in
View file @
092e2dec
...
@@ -431,22 +431,30 @@ while (<IF>) {
...
@@ -431,22 +431,30 @@ while (<IF>) {
# 4. "pxe_boot_path" node_type_attribute for node type
# 4. "pxe_boot_path" node_type_attribute for node type
# 5. don't set (i.e., use the dhcpd.conf global default).
# 5. don't set (i.e., use the dhcpd.conf global default).
#
#
my
$pxeboot
=
$row
{"
next_pxe_boot_path
"};
# XXX Note that we cannot do this right now for
if
(
!
$pxeboot
)
{
# boot_method == "pxelinux" nodes as they use the same
$pxeboot
=
$row
{"
pxe_boot_path
"};
# file for their regular boot. We could do this in the
# future by taking advantage of the fact that pxelinux
# tries an order list of config files for each node.
#
my
$nobj
=
Node
->
Lookup
(
$node_id
);
if
(
!
$nobj
)
{
fatal
("
Could not find Node info for
$node_id
");
}
}
$filename
=
SetupPXEBoot
(
$node_id
,
$mac
,
1
,
$pxeboot
);
if
(
$nobj
->
boot_method
()
ne
"
pxelinux
")
{
if
(
!
$filename
)
{
my
$pxeboot
=
$row
{"
next_pxe_boot_path
"};
# Get the node or node type default
if
(
!
$pxeboot
)
{
my
$nobj
=
Node
->
Lookup
(
$node_id
);
$pxeboot
=
$row
{"
pxe_boot_path
"};
if
(
!
$nobj
)
{
}
fatal
("
Could not find Node info for
$node_id
");
$filename
=
SetupPXEBoot
(
$node_id
,
$mac
,
1
,
$pxeboot
);
if
(
!
$filename
)
{
# Get the node or node type default
my
$path
=
$nobj
->
default_pxeboot
();
$filename
=
SetupPXEBoot
(
$node_id
,
$mac
,
0
,
$path
);
}
if
(
$filename
)
{
$filename
=
"
${spaces}
\t
filename
\"
$filename
\"
;
\n
";
}
}
my
$path
=
$nobj
->
default_pxeboot
();
$filename
=
SetupPXEBoot
(
$node_id
,
$mac
,
0
,
$path
);
}
if
(
$filename
)
{
$filename
=
"
${spaces}
\t
filename
\"
$filename
\"
;
\n
";
}
}
spit:
spit:
# Need to make MAC look right..
# Need to make MAC look right..
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment