Skip to content

Commit

Permalink
issue OpenROV/openrov-software#628; force resize
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianAdams authored Jan 26, 2017
1 parent 5636d9d commit a613e96
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ if [ -f /var/.RESIZE_ROOT_PARTITION ]; then
echo none > ${led3}/trigger || true

/opt/scripts/tools/grow_partition.sh || true
# per https://github.com/OpenROV/openrov-software/issues/628
# Cannot fail in rc.local, so best effort try, if the partition is not ready to grow the command does nothing
resize2fs /dev/mmcblk0p1 || true
resize2fs /dev/mmcblk1p1 || true
reboot -f
fi

Expand Down

0 comments on commit a613e96

Please sign in to comment.