From 712df1f5f80b4684124d57486306ab28da85a52c Mon Sep 17 00:00:00 2001 From: Claudio Carvalho Date: Wed, 28 Sep 2016 05:11:02 -0300 Subject: 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 Signed-off-by: Stewart Smith --- external/boot-tests/bmc_support.sh | 12 ++++++++++-- 1 file 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 } -- cgit v1.1