aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClaudio Carvalho <cclaudio@linux.vnet.ibm.com>2016-09-28 05:11:02 -0300
committerStewart Smith <stewart@linux.vnet.ibm.com>2016-10-10 15:29:37 +1100
commit712df1f5f80b4684124d57486306ab28da85a52c (patch)
tree61de67d1a12676592c2359e29147c5df43f823bc
parentb352dd68489a9d079dc193b5ce1dca9112a3b008 (diff)
downloadskiboot-712df1f5f80b4684124d57486306ab28da85a52c.zip
skiboot-712df1f5f80b4684124d57486306ab28da85a52c.tar.gz
skiboot-712df1f5f80b4684124d57486306ab28da85a52c.tar.bz2
external/boot_tests: remove lid from the BMC after flashing
Usually, BMC systems doesn't have too much space for storage. This removes the lid from the BMC after the lid is flashed. Signed-off-by: Claudio Carvalho <cclaudio@linux.vnet.ibm.com> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
-rw-r--r--external/boot-tests/bmc_support.sh12
1 files changed, 10 insertions, 2 deletions
diff --git a/external/boot-tests/bmc_support.sh b/external/boot-tests/bmc_support.sh
index e28ce7f..4b1c004 100644
--- a/external/boot-tests/bmc_support.sh
+++ b/external/boot-tests/bmc_support.sh
@@ -80,6 +80,8 @@ function flash {
if [ "$?" -ne "0" ] ; then
error "An unexpected pflash error has occurred";
fi
+ msg "Removing /tpm/image.pnor"
+ $SSHCMD "rm /tmp/image.pnor"
fi
if [ ! -z "${LID[0]}" ] ; then
@@ -87,7 +89,9 @@ function flash {
$SSHCMD "$PFLASH_BINARY -e -f -P PAYLOAD -p /tmp/skiboot.lid"
if [ "$?" -ne "0" ] ; then
error "An unexpected pflash error has occurred";
- fi
+ fi
+ msg "Removing /tpm/skiboot.lid"
+ $SSHCMD "rm /tmp/skiboot.lid"
fi
if [ ! -z "${LID[1]}" ] ; then
@@ -95,7 +99,9 @@ function flash {
$SSHCMD "$PFLASH_BINARY -e -f -P BOOTKERNEL -p /tmp/bootkernel"
if [ "$?" -ne "0" ] ; then
error "An unexpected pflash error has occurred";
- fi
+ fi
+ msg "Removing /tmp/bootkernel"
+ $SSHCMD "rm /tmp/bootkernel"
fi
if [ ! -z "${arbitrary_lid[0]}" -a ! -z "${arbitrary_lid[1]}" ] ; then
@@ -104,6 +110,8 @@ function flash {
if [ "$?" -ne "0" ] ; then
error "An unexpected pflash error has occurred";
fi
+ msg "Removing /tmp/$(basename ${arbitrary_lid[1]})"
+ $SSHCMD "rm /tmp/$(basename ${arbitrary_lid[1]})"
fi
}