From 7ffb0fe5a82e5b94bda08169a989759efe4da32d Mon Sep 17 00:00:00 2001 From: Joseph Coffland Date: Thu, 28 Sep 2017 23:40:19 -0700 Subject: [PATCH] Mount /boot read only --- scripts/setup_rpi.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/setup_rpi.sh b/scripts/setup_rpi.sh index 7c3b266..a3aa2a8 100755 --- a/scripts/setup_rpi.sh +++ b/scripts/setup_rpi.sh @@ -67,6 +67,9 @@ pip-3.2 install --upgrade tornado sockjs-tornado pyserial smbus # Clean apt-get autoclean +# Mount VFAT boot partition read only to avoid corruption +sed -i 's/\(vfat[[:space:]]\+defaults\)[^[:space:]]*/\1,ro/' /etc/fstab + # Change hostname sed -i "s/raspberrypi/bbctrl$ID/" /etc/hosts /etc/hostname -- 2.27.0