From 168d1609095a52eace2d98e55cdf30b6393f8490 Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Tue, 16 Jun 2009 14:15:00 +0000 Subject: [PATCH] -Explicit ESX deployment in anaconda plugin git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@3587 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/anaconda.pm | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/xCAT-server/lib/xcat/plugins/anaconda.pm b/xCAT-server/lib/xcat/plugins/anaconda.pm index fc337d37b..0b00548e3 100644 --- a/xCAT-server/lib/xcat/plugins/anaconda.pm +++ b/xCAT-server/lib/xcat/plugins/anaconda.pm @@ -59,7 +59,7 @@ sub handled_commands return { copycd => "anaconda", mknetboot => "nodetype:os=(centos.*)|(rh.*)|(fedora.*)", - mkinstall => "nodetype:os=(centos.*)|(rh.*)|(fedora.*)", + mkinstall => "nodetype:os=(esx[34].*)|(centos.*)|(rh.*)|(fedora.*)", }; } @@ -208,6 +208,10 @@ sub mknetboot { $platform = "fedora"; } + elsif ($osver =~ /esx.*/) + { + $platform = "esx"; + } my $arch = $ent->{arch}; my $profile = $ent->{profile}; @@ -449,6 +453,10 @@ sub mkinstall { $platform = "fedora"; } + elsif ($os =~ /esx.*/) + { + $platform = "esx"; + } my $genos = $os; $genos =~ s/\..*//; if ($genos =~ /rh.s(\d*)/)