Fix mkvm with up to three ide drives

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@9546 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jbjohnso 2011-05-10 14:27:50 +00:00
parent d5f84c1e22
commit a4dd8b7b22

View File

@ -2867,6 +2867,12 @@ sub create_storage_devs {
while ($usedideunits{$unitnum}) {
$unitnum++;
}
if ($unitnum == 2) {
$idecontrollerkey++;
$ideunitnum=1;
$unitnum=1;
$controllerkey=$idecontrollerkey;
}
$usedideunits{$unitnum}=1;
} else {
$controllerkey = $scsicontrollerkey;