I'm in the process of configuring raspbian jessie to run as read-only.Only /tmp is writable and the system is configured to write DHCP ip information in /tmp. Everything is working fine except /etc/resolv.conf. It just doesn't get updated during boot.I have tried using a symbolic link.rm /etc/resolv.conftouch /tmp/resolv.confln -s /tmp/resolv.conf /etc/resolv.confBut because /tmp is emptied on reboot, /tmp/resolve.conf can't be updated because it doesn't exist.So I tried creating the file during boot.touch /tmp/resolv.conf in /etc/rc.localThe file gets created, but only after dhclient runs, because there are no DNS entries in it. If I run dhclient after the system has booted it writes the DNS servers to the file successfully.How can I make resolv.conf work on a read-only file system?
resolv.conf - read-only filesystem
debian;raspbian;readonly;resolv.conf
This did itrm /etc/resolv.confln -s /tmp/resolv.conf /etc/resolv.confsed -i 's/\/etc\/resolv.conf/\/tmp\/resolv.conf/g' /sbin/dhclient-script