-Have setupiscsidev handle lun number for gPXE use

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@2437 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jbjohnso 2008-10-31 13:59:11 +00:00
parent aa0d201bd0
commit d668885469

View File

@ -124,10 +124,17 @@ sub process_request {
}
}
my $targname;
$iscsient = $iscsitab->getNodeAttribs($node,['target']);
my $lun;
$iscsient = $iscsitab->getNodeAttribs($node,['target','lun']);
if ($iscsient and $iscsient->{target}) {
$targname = $iscsient->{target};
}
if ($iscsient and defined($iscsient->{lun})) {
$lun = $iscsient->{lun};
} else {
$lun = '1';
$iscsitab->setNodeAttribs($node,{lun=>$lun});
}
unless ($targname) {
my @date = localtime;
my $year = 1900+$date[5];