Good! This is why I invited feedback, thought someone might think of a reason not to delete all the whiteout files!rufwoof wrote:Say I have a base system that includes a .Xresources that if present takes precedence over .Xdefaults. If the bottom ro layer has a .Xresources and no .Xdefaults and I create a .Xdefaults in the rw top layer and delete the .Xresources (.wh file created in the rw layer) then it works as expected with the preferred .Xdefaults being used. I shut down and .wh files are deleted and the next load has both .Xdefaults and .Xresources present and .Xresources is incorrectly used .Xdefaults ignored.
I may have it wrong about the way things are set up with .Xresources taking precedence over .Xdefaults, but I envisage that something along the above lines could create problems ??? (there are other cases of series of potential files with one being given precedence according to specific tested for existence order). Equally my understanding could be wrong.
For that particular example, you would have to create .Xresources and .Xdefaults on the top level.
Yes, if someone deletes a config file, coz they don't want it anymore, if the whiteout file gets removed, that file will be back at next bootup.
However, if that config file exists in a SFS file, it is because it is needed. For upgrading to next version, it may be important that the user not be able to remove important files on the SFS layers.
But then, the user could create a replacement config file, that does nothing. Food for thought.
It is good to rethink the fundamentals sometimes.