diff --git a/xCAT-server/share/xcat/install/ubuntu/cudafull.ubuntu14.04.2.ppc64el.pkglist b/xCAT-server/share/xcat/install/ubuntu/cudafull.ubuntu14.04.2.ppc64el.pkglist index ceccfca02..1f38963fb 100644 --- a/xCAT-server/share/xcat/install/ubuntu/cudafull.ubuntu14.04.2.ppc64el.pkglist +++ b/xCAT-server/share/xcat/install/ubuntu/cudafull.ubuntu14.04.2.ppc64el.pkglist @@ -3,8 +3,6 @@ nfs-common openssl isc-dhcp-client libc-bin -linux-image-generic-lts-utopic -linux-headers-generic-lts-utopic openssh-server openssh-client wget diff --git a/xCAT-server/share/xcat/install/ubuntu/cudaruntime.ubuntu14.04.2.ppc64el.pkglist b/xCAT-server/share/xcat/install/ubuntu/cudaruntime.ubuntu14.04.2.ppc64el.pkglist index 22e55929a..492c2409d 100644 --- a/xCAT-server/share/xcat/install/ubuntu/cudaruntime.ubuntu14.04.2.ppc64el.pkglist +++ b/xCAT-server/share/xcat/install/ubuntu/cudaruntime.ubuntu14.04.2.ppc64el.pkglist @@ -3,8 +3,6 @@ nfs-common openssl isc-dhcp-client libc-bin -linux-image-generic-lts-utopic -linux-headers-generic-lts-utopic openssh-server openssh-client wget diff --git a/xCAT-server/share/xcat/netboot/ubuntu/genimage b/xCAT-server/share/xcat/netboot/ubuntu/genimage index a5a67ed8f..ee80ba6ed 100755 --- a/xCAT-server/share/xcat/netboot/ubuntu/genimage +++ b/xCAT-server/share/xcat/netboot/ubuntu/genimage @@ -1913,13 +1913,12 @@ sub load_dd () #To hack the uname sub use_hackuname { - if ( -e "$rootimg_dir/bin/uname-binary") { - system("rm $rootimg_dir/bin/uname-binary"); + unless ( -e "$rootimg_dir/bin/uname-binary") { + if ( -e -x "$rootimg_dir/bin/uname" ) { + move("$rootimg_dir/bin/uname", "$rootimg_dir/bin/uname-binary"); + } } - if ( -e -x "$rootimg_dir/bin/uname" ) { - move("$rootimg_dir/bin/uname", "$rootimg_dir/bin/uname-binary"); - } - + # write the hacked uname script my $unamefile; open($unamefile, ">", "$rootimg_dir/bin/uname");