Commit ff2e8682 authored by Leigh B. Stoller's avatar Leigh B. Stoller
Browse files

Add existence check for next_boot_path and def_boot_path, as per

Mike's request.
parent 1fccae21
......@@ -129,6 +129,24 @@ for ($i = 0; $i < $db_result->numrows; $i++) {
push(@nodes, $node);
$osid{$node} = $row{'def_boot_osid'};
#
# Make sure the files specified in the paths exist.
#
if (defined($row{'def_boot_path'})) {
my $path = $row{'def_boot_path'};
if ($path ne "" && ! -e $path) {
die("File $path for node $node does not exist!");
}
}
if (defined($row{'next_boot_path'})) {
my $path = $row{'next_boot_path'};
if ($path ne "" && ! -e $path) {
die("File $path for node $node does not exist!");
}
}
#
# XXX - Check for existence of the delta files. We do this here
# cause its easier than looking for a failure later, when the node
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment