It's worth noting that you don't have to do this manually. Enabling "overlay filesystem" in raspi-config will do this for you, so that all changes to the filesystem are lost after a reboot.
I use the overlayfs provided by raspi-config.
(The same way undoes read-only mode, but two reboots will be required instead of one.)