mirror of
				https://github.com/xcat2/xcat-core.git
				synced 2025-10-31 19:32:31 +00:00 
			
		
		
		
	remove the un-used code from genimage, according to the defect 3019537
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@6649 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
		| @@ -1137,22 +1137,6 @@ sub postscripts { # TODO: customized postscripts | ||||
|         copy ("$installroot/postscripts/xcatdsklspost", "$rootimg_dir/opt/xcat/"); | ||||
|         chmod '0755', "$rootimg_dir/opt/xcat/xcatdsklspost"; | ||||
|     } | ||||
|  | ||||
|    if (-d "$installroot/postscripts/hostkeys") { | ||||
|       for my $key (<$installroot/postscripts/hostkeys/*key>) { | ||||
|          copy ($key,"$rootimg_dir/etc/ssh/"); | ||||
|       } | ||||
|       chmod 0600,</$rootimg_dir/etc/ssh/*key>; | ||||
|    } | ||||
|    if (-d "/$installroot/postscripts/.ssh") { | ||||
|       mkpath("/$rootimg_dir/root/.ssh"); | ||||
|       chmod(0700,"/$rootimg_dir/root/.ssh/"); | ||||
|       for my $file (</$installroot/postscripts/.ssh/*>) { | ||||
|          copy ($file,"/$rootimg_dir/root/.ssh/"); | ||||
|       } | ||||
|       chmod(0600,</$rootimg_dir/root/.ssh/*>); | ||||
|    } | ||||
|  | ||||
| } | ||||
|  | ||||
| sub generic_post { #This function is meant to leave the image in a state approximating a normal install | ||||
|   | ||||
| @@ -1173,21 +1173,6 @@ sub postscripts { # TODO: customized postscripts | ||||
|         #system("$XCATROOT/share/xcat/netboot/add-on/statelite/add_passwd $rootimg_dir"); | ||||
|         #system("$XCATROOT/share/xcat/netboot/add-on/statelite/add_ssh $rootimg_dir"); | ||||
|     } | ||||
|    if (-d "$installroot/postscripts/hostkeys") { | ||||
|       for my $key (<$installroot/postscripts/hostkeys/*key>) { | ||||
|          copy ($key,"$rootimg_dir/etc/ssh/"); | ||||
|       } | ||||
|       chmod 0600,<$rootimg_dir/etc/ssh/*key>; | ||||
|    } | ||||
|    if (-d "/$installroot/postscripts/.ssh") { | ||||
|       mkpath("$rootimg_dir/root/.ssh"); | ||||
|       chmod(0700,"$rootimg_dir/root/.ssh/"); | ||||
|       for my $file (</$installroot/postscripts/.ssh/*>) { | ||||
|          copy ($file,"$rootimg_dir/root/.ssh/"); | ||||
|       } | ||||
|       chmod(0600,<$rootimg_dir/root/.ssh/*>); | ||||
|    } | ||||
|  | ||||
| } | ||||
|  | ||||
| sub generic_post { #This function is meant to leave the image in a state approximating a normal install | ||||
|   | ||||
		Reference in New Issue
	
	Block a user