This problem can easily be solved by making an initrd environment and loading it to ram using ramfs where execution of scripts will not bother actual filesystem.
Yep, its already there but still, updates needs to be write to usb , and that is weak spot
Already using tmpfs for everything
miner@simpleminer:~$ df -h
Filesystem Size Used Avail Use% Mounted on
udev 3.8G 0 3.8G 0% /dev
tmpfs 767M 86M 682M 12% /run
/dev/sda2 6.5G 2.0G 4.5G 31% /
tmpfs 3.8G 0 3.8G 0% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 3.8G 0 3.8G 0% /sys/fs/cgroup
tmpfs 300M 16K 300M 1% /tmp
tmpfs 3.8G 12K 3.8G 1% /var/log
tmpfs 3.8G 96M 3.7G 3% /var/tmp
tmpfs 3.8G 0 3.8G 0% /var/log/apt
/dev/sda1 8.9M 3.5K 8.9M 1% /mnt/user
tmpfs 767M 0 767M 0% /run/user/1000