Skip to content

Commit

Permalink
Derive varlog size based on total flash size (#1209)
Browse files Browse the repository at this point in the history
  • Loading branch information
prsunny authored Dec 6, 2017
1 parent 2e31a38 commit 744927a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion files/Aboot/boot0.j2
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 744927a

Please sign in to comment.