https://bugzilla.redhat.com/show_bug.cgi?id=1828455
--- Comment #21 from Loïc Yhuel loic.yhuel@gmail.com --- (In reply to Sergio Basto from comment #20)
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 it ran depmod 155 * 3 = 465 times. All the slowness comes from the fact it runs depmod for each module, instead of just once at the end.