From 5c077303c778ccee6de7a2268aa5e38bd9b74987 Mon Sep 17 00:00:00 2001 From: wanghuaz Date: Wed, 16 Jan 2013 16:36:29 +0000 Subject: [PATCH] Fixing a problem in buildkit to allow multiple genimage_postinstall scripts git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14899 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-buildkit/bin/buildkit | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/xCAT-buildkit/bin/buildkit b/xCAT-buildkit/bin/buildkit index f05045e1c..35ecd5ef8 100755 --- a/xCAT-buildkit/bin/buildkit +++ b/xCAT-buildkit/bin/buildkit @@ -1330,11 +1330,14 @@ sub validate_bldkitconf } } if (defined($kc->{genimage_postinstall})){ - my $ck_file = $::workdir."/scripts/".$kc->{genimage_postinstall}; + foreach my $script (split(/\,/, $kc->{genimage_postinstall})){ + $script =~ s/\s+//g; + my $ck_file = $::workdir."/scripts/".$script; if (! -r $ck_file ) { print "genimage_postinstall script $ck_file defined in Kit Componenet \"$kc->{basename}\" does not exist or is not readable\n"; return 1; - } + } + } } if (defined($kc->{postbootscripts})){ foreach my $script (split(/\,/, $kc->{postbootscripts})){