From 92c3a6fcc8ab7715a33fd1a0cf53b4c6132235c5 Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Wed, 13 Jul 2011 18:13:11 +0000 Subject: [PATCH] Refine nbroot2 output git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10081 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-nbroot2/xcat-cmdline.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xCAT-nbroot2/xcat-cmdline.sh b/xCAT-nbroot2/xcat-cmdline.sh index 0ff3b9e78..6409f31b3 100755 --- a/xCAT-nbroot2/xcat-cmdline.sh +++ b/xCAT-nbroot2/xcat-cmdline.sh @@ -7,7 +7,6 @@ udevd --daemon udevadm trigger mkdir -p /var/lib/dhclient/ ip link set lo up -ip addr add dev lo 127.0.0.1/8 if [ ! -z "$BOOTIF" ]; then BOOTIF=`echo $BOOTIF|sed -e s/01-// -e s/-/:/g` echo -n "Waiting for device with address $BOOTIF to appear.." @@ -49,6 +48,8 @@ echo 'Protocol 2' >> /etc/ssh/sshd_config dhclient $bootnic & dhclient -6 $bootnic -lf /var/lib/dhclient/dhclient6.leases & mkdir -p /etc/xcat +mkdir -p /etc/pki/tls +touch /etc/pki/tls/openssl.cnf openssl genrsa -out /etc/xcat/privkey.pem 1024 PUBKEY=`openssl rsa -in /etc/xcat/privkey.pem -pubout|grep -v "PUBLIC KEY"` PUBKEY=`echo $PUBKEY|sed -e 's/ //g'`