mirror of
https://github.com/Dasharo/scripts.git
synced 2026-03-06 14:51:26 -08:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user