GPU supporting: remove linux-image and linux-headers from diskfull pkglist, modify hackuname to not overwrite uname-binary

This commit is contained in:
ertaozh 2015-04-09 07:23:03 -04:00
parent 2ad95b27e4
commit e959e5a698
3 changed files with 5 additions and 10 deletions

View File

@ -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

View File

@ -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

View File

@ -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");