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
dc484fcf
Commit
dc484fcf
authored
Feb 11, 2006
by
Mike Hibler
Browse files
Grab the disk unit number from the DB instead of assuming '0'
parent
b9afdc6a
Changes
1
Hide whitespace changes
Inline
Side-by-side
utils/create_image.in
View file @
dc484fcf
...
...
@@ -2,7 +2,7 @@
#
# EMULAB-COPYRIGHT
# Copyright (c) 2000-200
5
University of Utah and the Flux Group.
# Copyright (c) 2000-200
6
University of Utah and the Flux Group.
# All rights reserved.
#
...
...
@@ -301,11 +301,11 @@ close(FILE) or
# Get the disktype for this node
#
$db_result
=
DBQueryFatal
("
select disktype from nodes
"
.
DBQueryFatal
("
select disktype
,bootdisk_unit
from nodes
"
.
"
left join node_types on nodes.type=node_types.type
"
.
"
where node_id='
$node
'
");
if
(
$db_result
->
numrows
==
1
)
{
(
$devtype
)
=
$db_result
->
fetchrow_array
;
(
$devtype
,
$devnum
)
=
$db_result
->
fetchrow_array
;
}
my
$device
=
"
/dev/
${devtype}${devnum}
";
...
...
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