functions: Clear recovery logs from CrOS p12

Accumulated recovery logs in partition 12 on the internal drive
can eat up space and prevent flashrom and/or cbfstool from downloading.
Clear them to ensure sufficient space,

Addresses issue #156

Signed-off-by: Matt DeVillier <matt.devillier@gmail.com>
This commit is contained in:
Matt DeVillier
2021-06-19 13:13:17 -05:00
parent e0044a66bd
commit 690aa71d71

View File

@@ -189,6 +189,8 @@ if [ ! -f ${cbfstoolcmd} ]; then
return 1
fi
fi
# clear recovery logs which use valuable space
rm -rf /tmp/boot/recovery* 2>/dev/null
#create util dir
mkdir /tmp/boot/util 2>/dev/null
cd /tmp/boot/util
@@ -243,6 +245,8 @@ if [ ! -f ${flashromcmd} ]; then
return 1
fi
fi
# clear recovery logs which use valuable space
rm -rf /tmp/boot/recovery* 2>/dev/null
#create util dir
mkdir /tmp/boot/util 2>/dev/null
cd /tmp/boot/util