https://bugzilla.redhat.com/show_bug.cgi?id=1828455
--- Comment #20 from Sergio Basto sergio@serjux.com --- OK this bug is not empty directories .
I have 5.8.x kernel on my system [1] and I want test network drive rtl8821ce which is only available on 5.9.0-0.rc8.28.fc34.x86_64. Command [2] from script [3] take about 30 minutes because add 155 .ko to weak-updates [4] but and do it 3 times kernel 5.8.11 [5] after a while kernel 5.8.12 [6] and [7], you can see the timestamps, it started 15:21 and end at 16:03 .
So we have several bugs here not just one .
[1] rpm -q kernel kernel-5.8.11-100.fc31.x86_64 kernel-5.8.12-100.fc31.x86_64 kernel-5.8.13-100.fc31.x86_64
[2] /usr/bin/bash /usr/sbin/weak-modules --add-kernel 5.9.0-0.rc8.28.fc34.x86_64
[3] cat /var/tmp/rpm-tmp.IyoF7o if [ -x /usr/sbin/weak-modules ] then /usr/sbin/weak-modules --add-kernel 5.9.0-0.rc8.28.fc34.x86_64 || exit $? fi /bin/kernel-install add 5.9.0-0.rc8.28.fc34.x86_64 /lib/modules/5.9.0-0.rc8.28.fc34.x86_64/vmlinuz || exit $?r
[4] find /lib/modules/5.9.0-0.rc8.28.fc34.x86_64/weak-updates/ | wc -l 155
[5] for example:
ll /lib/modules/5.9.0-0.rc8.28.fc34.x86_64/weak-updates/drivers/input/joystick/ lrwxrwxrwx 1 root root 74 Oct 9 15:21 adi.ko.xz -> /lib/modules/5.8.11-100.fc31.x86_64/extra/drivers/input/joystick/adi.ko.xz lrwxrwxrwx 1 root root 78 Oct 9 15:21 joydump.ko.xz -> /lib/modules/5.8.11-100.fc31.x86_64/extra/drivers/input/joystick/joydump.ko.xz lrwxrwxrwx 1 root root 75 Oct 9 15:21 xpad.ko.xz -> /lib/modules/5.8.11-100.fc31.x86_64/extra/drivers/input/joystick/xpad.ko.xz
[6] for example: ll /lib/modules/5.9.0-0.rc8.28.fc34.x86_64/weak-updates/drivers/input/joystick/
lrwxrwxrwx 1 root root 74 Oct 9 15:51 a3d.ko.xz -> /lib/modules/5.8.12-100.fc31.x86_64/extra/drivers/input/joystick/a3d.ko.xz lrwxrwxrwx 1 root root 74 Oct 9 15:51 adi.ko.xz -> /lib/modules/5.8.12-100.fc31.x86_64/extra/drivers/input/joystick/adi.ko.xz
[7] ll /lib/modules/5.9.0-0.rc8.28.fc34.x86_64/weak-updates/drivers/input/joystick/
lrwxrwxrwx 1 root root 74 Oct 9 16:03 a3d.ko.xz -> /lib/modules/5.8.13-100.fc31.x86_64/extra/drivers/input/joystick/a3d.ko.xz lrwxrwxrwx 1 root root 74 Oct 9 16:03 adi.ko.xz -> /lib/modules/5.8.13-100.fc31.x86_64/extra/drivers/input/joystick/adi.ko.xz