From 56606ad7056943b4a5858b030e9db2a4039e1d21 Mon Sep 17 00:00:00 2001 From: cjhardee Date: Fri, 5 Nov 2010 14:26:14 +0000 Subject: [PATCH] changed custom install directory to use the os version instead of being hardodedto esxi git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@8063 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/esx.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/xCAT-server/lib/xcat/plugins/esx.pm b/xCAT-server/lib/xcat/plugins/esx.pm index 890229047..eab2c4cce 100644 --- a/xCAT-server/lib/xcat/plugins/esx.pm +++ b/xCAT-server/lib/xcat/plugins/esx.pm @@ -3735,7 +3735,10 @@ sub mknetboot { # first make sure copycds was done: my $custprofpath = $profile; unless ($custprofpath =~ /^\//) {#If profile begins with a /, assume it already is a path - $custprofpath = $installroot."/custom/install/esxi/$arch/$profile"; + $custprofpath = $installroot."/custom/install/$osver/$arch/$profile"; + unless(-d $custprofpath) { + $custprofpath = $installroot."/custom/install/esxi/$arch/$profile"; + } } unless( -r "$custprofpath/vmkboot.gz"