From 8530ddbb07d2038f32a354336d93bfc1bae79e01 Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Wed, 4 Nov 2009 16:25:59 +0000 Subject: [PATCH] -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 --- xCAT-server/lib/xcat/plugins/kvm.pm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/xCAT-server/lib/xcat/plugins/kvm.pm b/xCAT-server/lib/xcat/plugins/kvm.pm index 7f8ffb852..166303d55 100644 --- a/xCAT-server/lib/xcat/plugins/kvm.pm +++ b/xCAT-server/lib/xcat/plugins/kvm.pm @@ -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 {