Commit 866e1af0 authored by Leigh B Stoller's avatar Leigh B Stoller

Fix some bitrot in the EC2 support.

parent 273f8443
......@@ -809,6 +809,9 @@ sub vnodeCreate($$$$)
# Replace the existing line in the conf file.
#
addConfig($vninfo, "disk = [" . join(",", @stanzas) . "]", 2);
# Cause we have no idea.
$private->{'os'} = "other";
}
TBScriptUnlock();
......@@ -1212,6 +1215,9 @@ sub vnodePreConfig($$$$$){
$devname =~ s/\-/\-\-/g;
$devname =~ s/\//\-/g;
$private->{'rootpartition'} = "/dev/mapper/$devname";
# Must be a package. Ick.
return 0
if (! -e $private->{'rootpartition'});
}
#
......
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