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
9d45ca7e
Commit
9d45ca7e
authored
Jun 08, 2010
by
Leigh B Stoller
Browse files
Turn on new version of os_setup for testbed project.
parent
3825b5f5
Changes
1
Hide whitespace changes
Inline
Side-by-side
tbsetup/tbswap.in
View file @
9d45ca7e
...
...
@@ -199,6 +199,7 @@ if (!defined($experiment)) {
}
my
$special
=
(
$pid
eq
"
testbed
"
||
$pid
eq
"
tbres
"
||
$pid
eq
"
emulab-ops
"
||
$pid
eq
"
utahstud
");
my
$newsetup
=
(
$pid
eq
"
testbed
");
#
# Print starting message.
...
...
@@ -1285,8 +1286,10 @@ sub doSwapin($) {
#
print
"
Resetting OS and rebooting.
\n
";
TBDebugTimeStamp
("
launching os_setup
");
if
(
!
(
$os_setup_pid
=
fork
()))
{
exec
("
os_setup
$pid
$eid
")
or
return
1
;
if
(
!
(
$os_setup_pid
=
fork
()))
{
my
$oscmd
=
(
$newsetup
?
"
os_setup_new
"
:
"
os_setup
");
exec
("
$oscmd
$pid
$eid
")
or
return
1
;
}
elsif
(
$os_setup_pid
==
-
1
)
{
tberror
"
Fork failed.
";
return
1
;
...
...
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