From e7eda21182608d1f45a57d5f7b43e98f41b8fef4 Mon Sep 17 00:00:00 2001 From: vallard Date: Tue, 10 Aug 2010 23:01:09 +0000 Subject: [PATCH] added xCAT updateflag notification and ssh git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7036 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- .../share/xcat/install/esx/base.esxi4.1.tmpl | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/xCAT-server/share/xcat/install/esx/base.esxi4.1.tmpl b/xCAT-server/share/xcat/install/esx/base.esxi4.1.tmpl index 7094f022a..ee2bb0cd1 100644 --- a/xCAT-server/share/xcat/install/esx/base.esxi4.1.tmpl +++ b/xCAT-server/share/xcat/install/esx/base.esxi4.1.tmpl @@ -5,8 +5,10 @@ vmaccepteula # Set the root password for the DCUI and Tech Support Mode -rootpw --iscrypted #CRYPT:passwd:key=system,username=root:password# +rootpw --iscrypted #CRYPT:passwd:key=vmware,username=root:password# +# clear all partitions. +clearpart --alldrives --overwritevmfs # Choose the first disk (in channel/target/lun order) to install onto autopart --firstdisk --overwritevmfs @@ -22,7 +24,13 @@ network --bootproto=dhcp reboot # A sample post-install script -%post --unsupported --interpreter=python --ignorefailure=true -import time -stampFile = open('/finished.stamp', mode='w') -stampFile.write( time.asctime() ) +%post --interpreter=busybox --unsupported --ignorefailure=true + +# 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... +echo "\nnextdestiny\n" | /bin/openssl s_client -quiet -connect #COMMAND: host #TABLE:noderes:$NODE:xcatmaster# | head -1 | sed 's/.*address//g' #:3001 2>&1 | tee /tmp/foo.log + +# enable SSH on next boot: +%firstboot --interpreter=busybox --unsupported --level=47 +sed -ie 's/#ssh/ssh/' /etc/inetd.conf #ssh is too nice not to have