Skip to content
Permalink
Browse files

Apply PATCH-000002 to all boards if > 9 GB

  • Loading branch information...
NEMS Linux
NEMS Linux committed Mar 28, 2019
1 parent da5bcfc commit 8bfc896049b71cc7f3e83c15a819b0f5b7b06d98
Showing with 2 additions and 5 deletions.
  1. +2 −5 fixes.sh
@@ -391,18 +391,15 @@ if (( $(awk 'BEGIN {print ("'$ver'" >= "'1.5'")}') )); then
apt -y install glances
fi

# Rock64 - mark filesystem as resized if greater than 7.7 GB
# This is due to the way the resize script works on that board. Should move it to rc.local.
if (( $platform >= 45 )) && (( $platform <= 47 )); then
# Mark filesystem as resized if greater than 9 GB, just in case the patch didn't get logged or is virtual appliance (etc)
size=$(df --output=target,size /root | awk ' NR==2 { print $2 } ')
if (( $size > 7700000 )); then
if (( $size > 9000000 )); then
# Log that patch (resize) has been applied to this system
# Activates features such as bootscreen.sh
if ! grep -q "PATCH-000002" /var/log/nems/patches.log; then
echo "PATCH-000002" >> /var/log/nems/patches.log
fi
fi
fi



0 comments on commit 8bfc896

Please sign in to comment.
You can’t perform that action at this time.