mirror of
				https://github.com/xcat2/xcat-core.git
				synced 2025-10-31 03:12:30 +00:00 
			
		
		
		
	GPU supporting: remove linux-image and linux-headers from diskfull pkglist, modify hackuname to not overwrite uname-binary
This commit is contained in:
		| @@ -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 | ||||
|   | ||||
| @@ -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 | ||||
|   | ||||
| @@ -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"); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user