I want Linux's OverlayFS to behave like AUFS when writing to a lower file. I want it to write through to the lower directory. For example, suppose I have two files named L/lower and U/upper.
mount -t overlay -o lowerdir=L,upperdir=U,workdir=W overlay X
This would merge L and U into a single OverlayFS directory named X. So now the two files would be accessible as X/lower and X/upper.
Therefore I could modify the lower file through the OverlayFS directory. For example:
echo 'This is a modification' >> X/lower
But this is where it misbehaves on me. It does not actually modify the lower file L/lower. Instead it creates a new upper file called U/lower and writes my modification there. This is not what I want. I want X to serve as a convenient, single access point for editing purposes.
How can I make the modification to X/lower write through to L/lower?
LandU, viaX— ‘a convenient, single access point for editing purposes’ — what AUFS gave me. – Michael Allan May 04 '20 at 21:52