Run mongodb from a read-only storage device?

This is not a matter of configuration changes, this would be a very large rewrite of MongoDB code base.