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
0e8664dd
Commit
0e8664dd
authored
Jul 08, 2003
by
Leigh B. Stoller
Browse files
Use new slot in node_types table to determine what OSID to load on
a pnode hosting jails. Better than hardwired OSID in assign_wrapper!
parent
0a12fd75
Changes
1
Hide whitespace changes
Inline
Side-by-side
tbsetup/assign_wrapper.in
View file @
0e8664dd
...
...
@@ -309,18 +309,12 @@ my %jailosids = ();
my
%defaultosids
=
();
$query_result
=
DBQueryFatal
("
SELECT type,delay_osid,osid from node_types
");
DBQueryFatal
("
SELECT type,delay_osid,osid
,jail_osid
from node_types
");
my
$OURDOMAIN
=
"
@OURDOMAIN
@
";
while
((
$type
,
$delayosid
,
$defosid
)
=
$query_result
->
fetchrow_array
())
{
while
((
$type
,
$delayosid
,
$defosid
,
$jailosid
)
=
$query_result
->
fetchrow_array
())
{
$delayosids
{
$type
}
=
$delayosid
;
if
(
$OURDOMAIN
eq
"
mini.emulab.net
")
{
$jailosids
{
$type
}
=
"
FBSD-STD
";
}
else
{
$jailosids
{
$type
}
=
"
emulab-ops-FBSD47-UPDATE
";
}
$jailosids
{
$type
}
=
$jailosid
;
$defaultosids
{
$type
}
=
$defosid
;
}
...
...
Write
Preview
Supports
Markdown
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