Conceptually,
this answer should get you started.
More to the point though, I suppose you want (at least) updates to be preserved on persistent storage. If you are only concerned about shutting down quickly by "pulling the plug", then perhaps a symlink to
tmpfs in ~ is all you need.