Commit 954bc67b authored by Mike Hibler's avatar Mike Hibler

If we are setting up storage on a Xen vhost, name the VG "xen-vg".

parent f4b36185
......@@ -60,7 +60,9 @@ BEGIN
}
$VGNAME = "emulab";
if (INXENVM() && -r "$VARDIR/boot/vmname") {
if (GENVNODEHOST() && !SHAREDHOST()) {
$VGNAME = "xen-vg";
} elsif (INXENVM() && -r "$VARDIR/boot/vmname") {
my $vname = `cat $VARDIR/boot/vmname`;
chomp $vname;
if ($vname =~ /^([-\w]+)$/) {
......
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