<p dir="ltr">There are probably a few solutions to this probably the nicest would be to use UnionFS or similar to overlay a writable /tmp directory over /home/pi </p>
<p dir="ltr">Alternatively (and maybe a bit less of a learning curve) move /home/pi to some other location (eg /home/pi.readonly). Mount a tmpfs on /home/pi and then copy the content of the /home/pi.readonly to /home/pi. Be warned however tmpfs uses DRAM as storage so may not be good for long term sessions.</p>
<p dir="ltr">Yet another option that may help is to have a read/write partition monuted to /home/pi. Have a look at the guides by Open Energy Monitor on setting up the EmonBase. You could even delete the content on boot up and copy a clean version as with the previous example.</p>
<p dir="ltr">Jeremy</p>
<p dir="ltr">PS sorry for the lack of links doing this on a phone, bit Google is your friend 😉</p>