make genimage to cover the kernel name kernel-ppc64
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10107 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
0ef69580c5
commit
9ceb1e518f
@ -353,7 +353,7 @@ unless ($onlyinitrd) {
|
||||
my @npa = ();
|
||||
my @npa_group = ();
|
||||
foreach my $p (@$pa) {
|
||||
if ($p =~ /^kernel$/ && $kernelver) {
|
||||
if ($p =~ /^kernel/ && $kernelver) {
|
||||
# get all files in $srcdir and $kerneldir
|
||||
my @alldirs = ("$srcdir", "$kerneldir");
|
||||
my @allrpms = ();
|
||||
@ -361,7 +361,14 @@ unless ($onlyinitrd) {
|
||||
my @files = `find $dir -name *.rpm`;
|
||||
push @allrpms, @files;
|
||||
}
|
||||
my @kernelpkgs = ("kernel-default","kernel-default-base");
|
||||
my @kernelpkgs = ();
|
||||
if ($p =~ /^kernel$/) {
|
||||
@kernelpkgs = ("kernel-default","kernel-default-base");
|
||||
} elsif ($p =~ /^kernel-ppc64$/) {
|
||||
@kernelpkgs = ($p, $p."-base");
|
||||
} else {
|
||||
@kernelpkgs = ($p);
|
||||
}
|
||||
foreach my $kern (@kernelpkgs) {
|
||||
my @rpm = grep /$kern-$krpmver/, @allrpms;
|
||||
if (!@rpm) {
|
||||
|
Loading…
Reference in New Issue
Block a user