From df1896dca8878d46fda0b2c602d35e4bd452530a Mon Sep 17 00:00:00 2001 From: wanghuaz Date: Wed, 31 Oct 2012 08:52:28 +0000 Subject: [PATCH] Removed prefixes of postbootscripts since it should be done by buildkit command git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14171 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/kit.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/kit.pm b/xCAT-server/lib/xcat/plugins/kit.pm index 75d71efb8..b51dca91a 100644 --- a/xCAT-server/lib/xcat/plugins/kit.pm +++ b/xCAT-server/lib/xcat/plugins/kit.pm @@ -310,7 +310,7 @@ sub assign_to_osimage my @kitcompscripts = split ',', $kitcomptable->{postbootscripts}; foreach my $kitcompscript ( @kitcompscripts ) { - my $formatedkitcomp = "KIT_".$kitcompscript; + my $formatedkitcomp = $kitcompscript; if ( $osimagetable ) { if ( $osimagetable->{postbootscripts} ){ @@ -1826,7 +1826,7 @@ sub rmkitcomp foreach my $kitcomponent (keys %kitcomps) { my @kitcompscripts = split( ',', $kitcomps{$kitcomponent}{postbootscripts} ); foreach my $kitcompscript ( @kitcompscripts ) { - if ( $osimagescript =~ /^KIT_$kitcompscript$/ ) { + if ( $osimagescript =~ /^$kitcompscript$/ ) { $match = 1; last; }