-Fix kvm plugin to accept 'net' as a bootorder entry

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@4476 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jbjohnso 2009-11-04 16:25:59 +00:00
parent 61b197be05
commit 8530ddbb07

View File

@ -135,7 +135,11 @@ sub build_oshash {
my @bootdevs = split(/[:,]/,$bootorder);
my $bootnum = 0;
foreach (@bootdevs) {
$rethash{boot}->[$bootnum]->{dev}=$_;
if ("net" eq $_ or "n" eq $_) {
$rethash{boot}->[$bootnum]->{dev}="network";
} else {
$rethash{boot}->[$bootnum]->{dev}=$_;
}
$bootnum++;
}
} else {