From b578f845b94a73da28d0b830291d755bf6feedfc Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Wed, 31 Aug 2011 14:11:49 +0000 Subject: [PATCH] make sure dodiscovery actually has access to the public key so the element is not left unpopulated git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10416 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-nbroot2/dodiscovery | 3 +++ 1 file changed, 3 insertions(+) diff --git a/xCAT-nbroot2/dodiscovery b/xCAT-nbroot2/dodiscovery index 73aab6160..051c68e59 100755 --- a/xCAT-nbroot2/dodiscovery +++ b/xCAT-nbroot2/dodiscovery @@ -1,5 +1,8 @@ #!/bin/sh minixcatd.awk & +PUBKEY=`openssl rsa -in /etc/xcat/privkey.pem -pubout|grep -v "PUBLIC KEY"` +PUBKEY=`echo $PUBKEY|sed -e 's/ //g'` +export PUBKEY echo "Beginning node discovery process" NICSTOBRINGUP=`ip link|grep mtu|grep -v LOOPBACK|grep -v usb|grep -v ,UP|awk -F: '{print $2}'`