Derive varlog size based on total flash size (#1209)

This commit is contained in:
Prince Sunny 2017-12-06 15:13:18 -08:00 committed by GitHub
parent 2e31a38617
commit 744927acd3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -132,10 +132,15 @@ platform_specific() {
flash_size=28000
fi
if [ "$platform" = "rook" ]; then
varlog_size=4096
readprefdl -f /tmp/.system-prefdl -d > /mnt/flash/.system-prefdl
fi
if [ $flash_size -ge 28000 ]; then
varlog_size=4096
elif [ $flash_size -ge 3700 ]; then
varlog_size=400
fi
echo "varlog_size=$varlog_size" >>/tmp/append
}