diff --git a/xCAT-server/share/xcat/netboot/rh/genimage b/xCAT-server/share/xcat/netboot/rh/genimage index a0d16277a..fde28ceb0 100755 --- a/xCAT-server/share/xcat/netboot/rh/genimage +++ b/xCAT-server/share/xcat/netboot/rh/genimage @@ -203,8 +203,11 @@ unless ($onlyinitrd) { } my $ent = $linuximagetab->getAttribs({'imagename' => "$imagename"}, ['pkgdir']); - my $pkgdir = $ent->{'pkgdir'}; - my @pkgdirs = split(",", $pkgdir); + my $pkgdir = $ent->{'pkgdir'}; + if( !defined($pkgdir) ) { + $pkgdir = "$installroot/$osver/$arch/"; + } + my @pkgdirs = split(",", $pkgdir); my $dir; foreach $dir (@pkgdirs) { find(\&isyumdir, <$dir/>);