diff --git a/xCAT-server-2.0/share/xcat/netboot/centos/genimage b/xCAT-server-2.0/share/xcat/netboot/centos/genimage index 34027bb0f..9f76e8f87 100755 --- a/xCAT-server-2.0/share/xcat/netboot/centos/genimage +++ b/xCAT-server-2.0/share/xcat/netboot/centos/genimage @@ -62,7 +62,7 @@ if (-r "$pathtofiles/$profile.$osver.$arch.pkglist") { $pkglist = "$pathtofiles/$profile.$arch.pkglist"; } elsif (-r "$pathtofiles/$profile.$osver.pkglist") { $pkglist = "$pathtofiles/$profile.$osver.pkglist"; -} elsif (-r "$pathtofiles/$profile.$arch.pkglist") { +} elsif (-r "$pathtofiles/$profile.pkglist") { $pkglist = "$pathtofiles/$profile.pkglist"; } else { print "Unable to find package list for $profile!"; @@ -213,7 +213,7 @@ sub mkinitrd { push @filestoadd,[$_,"lib/$_"]; } } - foreach ("sbin/nash","sbin/busybox.anaconda","sbin/rmmod") { + foreach ("bin/cpio","sbin/nash","sbin/busybox.anaconda","sbin/rmmod") { getlibs($_); push @filestoadd,$_; } diff --git a/xCAT-server-2.0/share/xcat/netboot/fedora/genimage b/xCAT-server-2.0/share/xcat/netboot/fedora/genimage index aad045c31..bf8f74088 100755 --- a/xCAT-server-2.0/share/xcat/netboot/fedora/genimage +++ b/xCAT-server-2.0/share/xcat/netboot/fedora/genimage @@ -62,7 +62,7 @@ if (-r "$pathtofiles/$profile.$osver.$arch.pkglist") { $pkglist = "$pathtofiles/$profile.$arch.pkglist"; } elsif (-r "$pathtofiles/$profile.$osver.pkglist") { $pkglist = "$pathtofiles/$profile.$osver.pkglist"; -} elsif (-r "$pathtofiles/$profile.$arch.pkglist") { +} elsif (-r "$pathtofiles/$profile.pkglist") { $pkglist = "$pathtofiles/$profile.pkglist"; } else { print "Unable to find package list for $profile!";