Shrink rootfs after y2020 game
We aren't running python code anymore. This shrinks flashing time
significantly.
Change-Id: I54aa7f90c05383c487deff0bd8c2f465f2ef0c55
Signed-off-by: Austin Schuh <austin.linux@gmail.com>
diff --git a/y2020/vision/rootfs/modify_rootfs.sh b/y2020/vision/rootfs/modify_rootfs.sh
index f08e635..ae1e493 100755
--- a/y2020/vision/rootfs/modify_rootfs.sh
+++ b/y2020/vision/rootfs/modify_rootfs.sh
@@ -44,7 +44,7 @@
else
OFFSET="$(/sbin/fdisk -lu "${IMAGE}" | grep "${IMAGE}2" | awk '{print 512*$2}')"
- if [[ "$(stat -c %s "${IMAGE}")" < 3000000000 ]]; then
+ if [[ "$(stat -c %s "${IMAGE}")" < 2000000000 ]]; then
echo "Growing image"
dd if=/dev/zero bs=1G count=1 >> "${IMAGE}"
START="$(/sbin/fdisk -lu "${IMAGE}" | grep "${IMAGE}2" | awk '{print $2}')"
diff --git a/y2020/vision/rootfs/target_configure.sh b/y2020/vision/rootfs/target_configure.sh
index 11b8cc8..e36a940 100755
--- a/y2020/vision/rootfs/target_configure.sh
+++ b/y2020/vision/rootfs/target_configure.sh
@@ -38,23 +38,9 @@
libopencv-videostab3.2 \
libopencv-viz3.2 \
python3-opencv \
- python3-matplotlib \
- gstreamer1.0-plugins-bad \
- gstreamer1.0-plugins-base \
- gstreamer1.0-plugins-good \
- gstreamer1.0-plugins-ugly \
- gstreamer1.0-x \
- gstreamer1.0-nice \
- gstreamer1.0-gl \
- libgstreamer-plugins-bad1.0-0 \
- libgstreamer-plugins-base1.0-0 \
- libgstreamer1.0-0 \
- libgstreamer-gl1.0-0 \
libnice10 \
libnice-dev
-python3 -m pip install glog
-
echo 'GOVERNOR="performance"' > /etc/default/cpufrequtils
# Add a .bashrc and friends for root.