W dniu sob, 16.12.2017 o godzinie 16∶48 +1300, użytkownik Kent Fredric napisał: > On Fri, 15 Dec 2017 21:09:15 +0100 > Michał Górny <mgo...@gentoo.org> wrote: > > > Sounds like you've put some awful self-symlink into this directory. > > The script incorrectly follows top-level symlinks when removing, I'll > > fix that. > > If it helps, this is on a no-multilib install, and the tree if I roll back to > its state in may ( the last snapshot ) shows: > > /usr # ls -la > total 24 > drwxr-xr-x 1 root root 142 Dec 3 2016 . > drwxr-xr-x 1 root root 126 Dec 15 21:10 .. > drwxr-xr-x 1 root root 14018 Dec 16 01:07 bin > drwxr-xr-x 1 root root 4596 Dec 16 01:02 include > lrwxrwxrwx 1 root root 5 Nov 24 2016 lib -> lib64 > drwxr-xr-x 1 root root 9980 Dec 16 01:02 lib64 > > / # ls -la > total 36 > drwxr-xr-x 1 root root 126 Dec 15 21:10 . > drwxr-xr-x 1 root root 126 Dec 15 21:10 .. > drwxr-xr-x 1 root root 1010 Dec 16 01:02 bin > drwxr-xr-x 1 root root 10 Nov 24 2016 boot > drwxr-xr-x 17 root root 3820 Dec 15 10:55 dev > drwxr-xr-x 1 root root 1646 Dec 16 01:07 etc > drwxr-xr-x 1 root root 22 Jan 23 2017 home > lrwxrwxrwx 1 root root 5 Dec 15 21:10 lib -> lib64 > drwxr-xr-x 1 root root 3534 Dec 16 00:56 lib64 > drwxr-xr-x 1 root root 10 Nov 24 2016 media > drwxr-xr-x 1 root root 10 Nov 24 2016 mnt > drwxr-xr-x 1 root root 10 Jan 24 2017 opt > dr-xr-xr-x 219 root root 0 Dec 15 10:54 proc > drwxr-x--- 1 root wheel 488 Dec 15 11:04 root > drwxr-xr-x 1 root root 22 Dec 15 21:36 run > drwxr-xr-x 1 root root 1958 Dec 16 01:02 sbin > dr-xr-xr-x 13 root root 0 Dec 15 10:55 sys > drwxrwxrwt 1 root root 408 Dec 16 03:38 tmp > drwxr-xr-x 1 root root 142 Dec 3 2016 usr > drwxr-xr-x 1 root root 92 Jan 24 2017 var > > But as for "self-symlinks" I can't seem to find anything.
I suspect you have a stray '/lib64/lib64 -> /' or something like that. In any case, this should be fixed by: https://github.com/mgorny/unsymlink-lib/commit/b12feb90bdb72195f0ca5eede306783213bdacc9 I'd appreciate if you could retest with that commit on top (or taking unsymlink-lib off git). This time it should not wipe your entire system, hopefully. > I should also point out that I had a bunch of bind-mounted directories in > /usr/src/* from the host OS , and these were also recursively nuked. :/ > > But I couldn't see anything obvious in the source that explained that ( and > analysis didn't really have any indication of things that could get broken ) ...except for suspicious 'lib64' file? ;-) -- Best regards, Michał Górny