diff --git a/xCAT-server/lib/xcat/plugins/kit.pm b/xCAT-server/lib/xcat/plugins/kit.pm index a96754747..8516b8a51 100644 --- a/xCAT-server/lib/xcat/plugins/kit.pm +++ b/xCAT-server/lib/xcat/plugins/kit.pm @@ -2897,7 +2897,8 @@ sub rmkitcomp $inlist = 1; } if ( $kitcomps{$kitcomponent}{prerequisite} ) { - if ( $line =~ /^$kitreponame\/prep_$basename$/ ) { + if (( $line =~ /^$kitreponame\/prep_$basename$/ ) || + ( $line =~ /^$kitreponame\/prep-$basename$/ )) { if ( $inlist ) { $num--; foreach ( 1..$num ) {