Commit c86553a3 authored by Leigh B Stoller's avatar Leigh B Stoller
Browse files

A fixup so that rc.inelab works inside a XEN VM; ISXENVM() has to

be true, which requires a file back to $BOOTDIR after running prepare.
parent 9504e955
......@@ -87,7 +87,7 @@ if (@ARGV) {
# More stuff we need below.
my $domain;
my ($pid,$eid,undef) = check_nickname();
my ($pid,$eid,$vid) = check_nickname();
my $file = TMCREATOR();
my $creator = `cat $file`;
chomp($creator);
......@@ -826,6 +826,14 @@ sub SetupFsNode()
system("/etc/rc.d/ldconfig start");
}
#
# This is a fixup, cause prepare removes the vmname, which is needed
# during the reboot to tell outer boss we are alive (rc.inelab).
#
if ($XENVM) {
mysystem("echo '$vid' > $BOOTDIR/vmname");
}
#
# Remove the outer testbed startup script.
#
......@@ -1269,6 +1277,14 @@ sub SetupOpsNode($)
system("/etc/rc.d/ldconfig start");
}
#
# This is a fixup, cause prepare removes the vmname, which is needed
# during the reboot to tell outer boss we are alive (rc.inelab).
#
if ($XENVM) {
mysystem("echo '$vid' > $BOOTDIR/vmname");
}
#
# Remove the outer testbed startup script.
#
......@@ -1940,6 +1956,14 @@ sub SetupBossNode($)
system("/etc/rc.d/ldconfig start");
}
#
# This is a fixup, cause prepare removes the vmname, which is needed
# during the reboot to tell outer boss we are alive (rc.inelab).
#
if ($XENVM) {
mysystem("echo '$vid' > $BOOTDIR/vmname");
}
#
# Remove the outer testbed startup script.
#
......@@ -2576,6 +2600,14 @@ sub SetupOpsJail()
system("/etc/rc.d/ldconfig start");
}
#
# This is a fixup, cause prepare removes the vmname, which is needed
# during the reboot to tell outer boss we are alive (rc.inelab).
#
if ($XENVM) {
mysystem("echo '$vid' > $BOOTDIR/vmname");
}
#
# Remove the outer testbed startup script.
#
......
Supports Markdown
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