goranche / raspbian-ua-netinst-ro

An installation of debian that creates a read only system
MIT License
3 stars 1 forks source link

raspbian-ua-netinst-ro

An installation of debian that creates a read only system

Intended to be used with raspbian-ua-netinst

Basically, what happens is that /var gets moved to /var_orig, /var_rw is created and mounted as a tmpfs. After this a unionfs is created, so reads from /var really are "served" from /var_orig, and writes go to /var_rw. In case anything is written to a location, it's read from the *_rw location.

Possible improvements:

Contributions are welcome, of course :wink:

Temporarily enable write:

One can issue the following command (same thing for /boot) to gain temporary write access to the filesystem (note that /var will still be mounted in a tmpfs, so changes there will be lost!):

(sudo) mount -o remount,rw /

when done writing changes, remount it ro again:

(sudo) mount -o remount,ro /