Carry over ssh authorized keys from install image to installed esxi system
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10735 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
		| @@ -25,6 +25,14 @@ cp /etc/resolv.conf /etc/resolv.conf.xcat | ||||
|  | ||||
| %post --interpreter=busybox --ignorefailure=true | ||||
|  | ||||
| for dir in /vmfs/volumes/*; do | ||||
| 	if [ -e $dir/boot.cfg -a $dir/s.v00 ]; then | ||||
| 		cd / | ||||
| 		tar zcvf  $dir/xcatmod.tgz etc/ssh/keys-root/authorized_keys | ||||
| 		sed -i 's/onetime.tgz/xcatmod.tgz --- onetime.tgz/' $dir/boot.cfg | ||||
| 	fi | ||||
| done | ||||
| 		 | ||||
| # tell xCAT management server we are done installing | ||||
| # have to put in the IP address instead of the hostname because VMware | ||||
| # ESXi 4.1 can not resolve IP addresses... | ||||
|   | ||||
		Reference in New Issue
	
	Block a user