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
5bbd4e03
Commit
5bbd4e03
authored
Sep 20, 2011
by
Mike Hibler
Browse files
Warn if pxeboot path chosen does not exist.
parent
e48f3a05
Changes
1
Hide whitespace changes
Inline
Side-by-side
tbsetup/pxe_select.in
View file @
5bbd4e03
...
...
@@ -133,6 +133,16 @@ if ($UID && !TBAdmin($UID)) {
}
}
#
# Warn them if the path doesn't actually exist.
#
# XXX this is not fatal because we overload the pathname to encode "special"
# boot information like pxelinux configs in some cases.
#
if
(
$pxebootpath
&&
!
-
e
"
$pxebootpath
")
{
print
STDERR
"
WARNING: '
$pxebootpath
' does not exist
\n
";
}
my
$changed
=
0
;
foreach
my
$node
(
@nodes
)
{
my
$nodeobject
=
Node
->
Lookup
(
$node
);
...
...
Write
Preview
Markdown
is supported
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