It sounds like the proper folders might not be persistent on the DietPi build. I would make sure that all of these folders are set as persistent and that the creators of the image haven’t set up a Deep Freeze kind of capability on the image:
If there are still issues after, can you please request that a DietPi dev reach out directly to us?