Did something similar recently. Turns out rsync by default, if it encounters a symlink to a directory and it’s instructed to copy a directory with the same name, will remove the symlink and create an empty directory.
So I had a script that installs crosscompiled kernel modules via rsync /path/to/nfs/path /
This worked perfectly until Debian 12, like other distros, decided to merge /usr, so now /bin is a symlink to /usr/bin. First time I run the script after upgrade /bin gets replaced and then no programs can be started as all binaries look for /bin/ld-linux.
I managed to fix it by booting into busybox and recreating the symlink, but it took a while until I figured out what was wrong, wasn’t familiar with usrmerge.
There’s the joke in Swedish about alcohol being a lösningsmedel (solvent, but also something that solves problems). Won’t that also work in German but with Lösungsmittel?
deleted_by_author
deleted_by_author
Behold the glorious GAR! (mander.xyz)
https://mander.xyz/pictrs/image/5f7d2466-96a1-4fdd-b0d7-8151e890668a.jpeg...
🍸 I like to mix my solutions. The more the merrier. (mander.xyz)