To preserve the data, you must store all configuration file data in a volume other than a root volume.
This ensures that you never need to revert the root volume.