Commit 205fa4b9 authored by Mike Hibler's avatar Mike Hibler

Bug Fix: checkin versions that correspond to what is deployed.

parent e5601324
#!/bin/sh
#
# EMULAB-COPYRIGHT
# Copyright (c) 2010 University of Utah and the Flux Group.
# Copyright (c) 2010-2012 University of Utah and the Flux Group.
# All rights reserved.
#
MP=`which modprobe`
KILLALL=`which killall`
......@@ -12,16 +13,37 @@ TMCC=`which tmcc`
SLEEPTIME=1
# Error check later
echo "Doing TPM setup ..."
/etc/testbed/rc/rc.tpmsetup
${MP} tpm_tis
${KILLALL} -9 tcsd; sleep ${SLEEPTIME}
${TCSD}
SSCRUFT=`${TMCC} quoteprep RELOADSETUP | ${DOQ} RELOADSETUP`
${TMCC} securestate ${SSCRUFT}
echo "Requesting info for RELOADSETUP quote ..."
QINFO=`${TMCC} quoteprep RELOADSETUP`
if [ -z "$QINFO" ]; then
echo "*** could not get RELOADSETUP quote info"
exit 1
fi
echo "Preparing RELOADSETUP quote ..."
SSCRUFT=`echo $QINFO | ${DOQ} RELOADSETUP`
if [ -z "$SSCRUFT" ]; then
echo "*** could not produce RELOADSETUP quote"
exit 1
fi
echo "Sending RELOADSETUP quote ..."
RC=`${TMCC} securestate ${SSCRUFT}`
if [ $? -ne 0 -o "$RC" = "FAILED" ]; then
echo "*** could not transition to RELOADSETUP"
exit 1
fi
echo "Fetching image-related keys ..."
${KILLALL} -9 tcsd; sleep ${SLEEPTIME}
${TCSD}
${TMCC} -T imagekey > /tmp/secureloadinfo.out
exit $?
#!/bin/sh
#
# EMULAB-COPYRIGHT
# Copyright (c) 2010 University of Utah and the Flux Group.
# Copyright (c) 2010-2012 University of Utah and the Flux Group.
# All rights reserved.
#
KILLALL=`which killall`
TCSD=`which tcsd`
......@@ -22,6 +23,26 @@ ${TPMS} ${REBOOTPCR}
${KILLALL} -9 tcsd; sleep ${SLEEPTIME}
${TCSD}
SSCRUFT=`${TMCC} quoteprep TPMSIGNOFF | ${DOQ} TPMSIGNOFF`
${TMCC} securestate ${SSCRUFT}
echo "Requesting info for TPMSIGNOFF quote ..."
QINFO=`${TMCC} quoteprep TPMSIGNOFF`
if [ -z "$QINFO" ]; then
echo "*** could not get TPMSIGNOFF quote info"
exit 1
fi
echo "Preparing TPMSIGNOFF quote ..."
SSCRUFT=`echo $QINFO | ${DOQ} TPMSIGNOFF`
if [ -z "$SSCRUFT" ]; then
echo "*** could not produce TPMSIGNOFF quote"
exit 1
fi
echo "Sending TPMSIGNOFF quote ..."
RC=`${TMCC} securestate ${SSCRUFT}`
if [ $? -ne 0 -o "$RC" = "FAILED" ]; then
echo "*** could not transition to TPMSIGNOFF"
exit 1
fi
exit 0
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment