Dracut takes too much time to build Initramfs

Hi. After switching to Fedora 40 I noticed that sudo dnf --refresh up takes more time that usual if update contains a new kernel.

e.g.

sudo dnf --refresh up
...
Transaction Summary
===================================================================================
Install   5 Packages
Upgrade  18 Packages
Remove    5 Packages

Total download size: 252 M
Is this ok [y/N]: y
Downloading Packages:
(1/23): kernel-16k-6.8.9-405.asahi.fc40.aarch64.rp 733 kB/s | 227 kB     00:00
(2/23): kernel-16k-core-6.8.9-405.asahi.fc40.aarch 7.8 MB/s |  21 MB     00:02
(3/23): kernel-16k-modules-extra-6.8.9-405.asahi.f 2.9 MB/s | 1.6 MB     00:00
(4/23): kernel-16k-modules-core-6.8.9-405.asahi.fc  10 MB/s |  36 MB     00:03
(5/23): kernel-16k-modules-6.8.9-405.asahi.fc40.aa  11 MB/s |  53 MB     00:04
(6/23): fwupd-1.9.20-1.fc40.aarch64.rpm            5.6 MB/s | 2.0 MB     00:00
(7/23): fwupd-plugin-flashrom-1.9.20-1.fc40.aarch6 325 kB/s |  24 kB     00:00
(8/23): fwupd-plugin-modem-manager-1.9.20-1.fc40.a 1.1 MB/s |  55 kB     00:00
(9/23): fwupd-plugin-uefi-capsule-data-1.9.20-1.fc  15 MB/s | 2.0 MB     00:00
(10/23): kwin-6.0.4.1-4.fc40.aarch64.rpm           319 kB/s |  13 kB     00:00
(11/23): kwin-common-6.0.4.1-4.fc40.aarch64.rpm     14 MB/s | 3.7 MB     00:00
(12/23): kwin-libs-6.0.4.1-4.fc40.aarch64.rpm       14 MB/s | 2.3 MB     00:00
(13/23): kwin-wayland-6.0.4.1-4.fc40.aarch64.rpm   6.1 MB/s | 497 kB     00:00
(14/23): libmodulemd-2.15.0-12.fc40.aarch64.rpm    3.0 MB/s | 211 kB     00:00
(15/23): libspatialaudio-3.1-15.20200406gitd926a2e  12 MB/s | 911 kB     00:00
(16/23): selinux-policy-40.20-1.fc40.noarch.rpm    1.3 MB/s |  57 kB     00:00
(17/23): selinux-policy-targeted-40.20-1.fc40.noar  17 MB/s | 6.9 MB     00:00
(18/23): zsh-5.9-14.fc40.aarch64.rpm                14 MB/s | 3.3 MB     00:00
(19/23): proton-vpn-gtk-app-4.3.2-1.fc40.noarch.rp 557 kB/s | 216 kB     00:00
(20/23): python3-proton-vpn-api-core-0.24.4-1.fc40 2.2 MB/s | 104 kB     00:00
(21/23): python3-proton-vpn-killswitch-network-man 737 kB/s |  32 kB     00:00
(22/23): firefox-langpacks-126.0-7.fc40.aarch64.rp  11 MB/s |  46 MB     00:04
(23/23): firefox-126.0-7.fc40.aarch64.rpm          4.5 MB/s |  71 MB     00:15
-----------------------------------------------------------------------------------
Total                                               13 MB/s | 252 MB     00:20

dracut-install takes about 9m to create initramfs.

I would be grateful to any help or advice.

Added asahi, dracut, kernel and removed selinux, wayland

Known bug. Mentioned by marcan here: Reddit - Dive into anything
Bug tracker here: 2278534 – dracut-install triggered by kernel-core scriptlet or dracut regenerate hangs for an unlimited amount of time
"Hopefully will be fixed/backported soon. "

1 Like

Many thanks, Dylan! I didn’t find anything, so I decided to ask here.

1 Like