Hello

I have managed to get Pi-Hole working with a read only Raspberry Pi, still having log and queries backed up in memory. Raspberry Pi is really sensible with writing and I have lost several cards (need reformat) because of improper shutdown. Since my Rasbperry PiHole server is the main DNS server of my house, I cannot afford it to be too sensible to improper reboot (my ADSL box can be rebooted whenever needed, it never brick).

I have followed this guide to turn the main partitions read only, get the needed tmpfs, then this script to set properly the /var/log/lighttpd . I got bad permission on /var/log/pihole.log, probably because logrotate has been disabled so I fixed it with a hack in /etc/rc.local .

So, if this interest people, and if this has chance to get into the main project, I can make a cleaner Pull Request with the following enhancement:

remount in read write just before updating list of changing conf from the admin UI. For the moment, I need to ssh to my pi hole server and type rw command.

command. save log to somewhere sage before reboot (now, all logs are lost on reboot)

Tell me what do you think.