Never overlay it that deep. All or nothing.
Here is the mount - bind method we used to use for moving /var/lib/plexmediaserver before systemd overrides were stabilized.
- mkdir /home/plexdir; chown plex:plex /home/plexdir
- stop plex
- cd /var/lib/plexmedia
- tar cf - . | (cd /home/plexdir ; tar xf -)
- rm -rf ./Library (removes /var/lib/plexmediaserver/Library)
- mount --bind /home/plexdir /var/lib/plexmediaserver
- start plex
Here’s how to play with this
mkdir /tmp/a /tmp/b
mkdir /tmp/a/dummy
touch /tmp/a/dummy/foo
mount --bind /tmp/a /tmp/b
ls -laR /tmp/b
This is the mechanism I’m proposing to use