Commit dc484fcf authored by Mike Hibler's avatar Mike Hibler
Browse files

Grab the disk unit number from the DB instead of assuming '0'

parent b9afdc6a
......@@ -2,7 +2,7 @@
#
# EMULAB-COPYRIGHT
# Copyright (c) 2000-2005 University of Utah and the Flux Group.
# Copyright (c) 2000-2006 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}";
......
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