Setup DreamPi to boot/mount read-only
Posted: Thu Mar 07, 2019 8:08 pm
I adapted the Adafruit read-only script (https://learn.adafruit.com/read-only-raspberry-pi/) to work with DreamPi. This is to make it easier to setup new DreamPi images to boot read-only so you don't have to worry about proper shutdowns. Tested with DreamPi 1.7 on a Raspberry Pi Zero W using pcwzrd13's Dreamcast Live USB Modem.
View script: https://pastebin.com/maG4mJtQ
Setup:
You can always remount / as RW after boot if you need to update wifi or other settings:
View script: https://pastebin.com/maG4mJtQ
Setup:
- Flash the DreamPi image
- Boot and setup wifi (reboot if needed)
- Verify you have an internet connection
- Make any other optional changes you'd like (enable ssh, change password, etc)
- Download & run the script:
Code: Select all
wget https://pastebin.com/raw/maG4mJtQ -O read-only-dreampi.sh ; sudo bash read-only-dreampi.sh
- Reboot
You can always remount / as RW after boot if you need to update wifi or other settings:
Code: Select all
sudo mount -o remount,rw /