Initramfs not found on boot after system update

I noticed that linux/linux-lts haven’t installed properly, so I arch-chrooted into with a live usb.
Tried to do a system update, and have errors, reinstall them and throws this error:

[root@EndeavourOS /]# yay -S linux linux-lts
 -> Avoid running yay as root/sudo.
Sync Explicit (2): linux-6.7.6.arch1-1, linux-lts-6.6.18-1
warning: linux-6.7.6.arch1-1 is up to date -- reinstalling
warning: linux-lts-6.6.18-1 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...

Package (2)     Old Version    New Version    Net Change

core/linux      6.7.6.arch1-1  6.7.6.arch1-1    0.00 MiB
core/linux-lts  6.6.18-1       6.6.18-1         0.00 MiB

Total Installed Size:  259.99 MiB
Net Upgrade Size:        0.00 MiB

:: Proceed with installation? [Y/n] 
(2/2) checking keys in keyring                                        [--------------------------------------] 100%
(2/2) checking package integrity                                      [--------------------------------------] 100%
(2/2) loading package files                                           [--------------------------------------] 100%
(2/2) checking for file conflicts                                     [--------------------------------------] 100%
:: Processing package changes...
(1/2) reinstalling linux                                              [--------------------------------------] 100%
(2/2) reinstalling linux-lts                                          [--------------------------------------] 100%
:: Running post-transaction hooks...
(1/5) Arming ConditionNeedsUpdate...
(2/5) Updating module dependencies...
(3/5) Updating initramfs...
:: Building initramfs for linux-lts (6.6.18-1-lts)
dracut: Executing: /usr/bin/dracut --force --hostonly --no-hostonly-cmdline /boot/initramfs-linux-lts.img 6.6.18-1-lts
dracut: dracut module 'dash' will not be installed, because command 'dash' could not be found!
dracut: dracut module 'mksh' will not be installed, because command 'mksh' could not be found!
dracut: dracut module 'systemd-pcrphase' will not be installed, because command '/usr/lib/systemd/systemd-pcrphase' could not be found!
dracut: dracut module 'busybox' will not be installed, because command 'busybox' could not be found!
dracut: dracut module 'rngd' will not be installed, because command 'rngd' could not be found!
dracut: dracut module 'connman' will not be installed, because command 'connmand' could not be found!
dracut: dracut module 'connman' will not be installed, because command 'connmanctl' could not be found!
dracut: dracut module 'connman' will not be installed, because command 'connmand-wait-online' could not be found!
dracut: dracut module 'network-wicked' will not be installed, because command 'wicked' could not be found!
dracut: dracut module 'dmraid' will not be installed, because command 'kpartx' could not be found!
dracut: dracut module 'tpm2-tss' will not be installed, because command 'tpm2' could not be found!
dracut: dracut module 'iscsi' will not be installed, because command 'iscsi-iname' could not be found!
dracut: dracut module 'iscsi' will not be installed, because command 'iscsiadm' could not be found!
dracut: dracut module 'iscsi' will not be installed, because command 'iscsid' could not be found!
dracut: dracut module 'nvmf' will not be installed, because command 'nvme' could not be found!
dracut: dracut module 'biosdevname' will not be installed, because command 'biosdevname' could not be found!
dracut: dracut module 'memstrack' will not be installed, because command 'memstrack' could not be found!
dracut: memstrack is not available
dracut: If you need to use rd.memdebug>=4, please install memstrack and procps-ng
dracut: dracut module 'squash' will not be installed, because command 'mksquashfs' could not be found!
dracut: dracut module 'squash' will not be installed, because command 'unsquashfs' could not be found!
dracut: dracut module 'amdgpu' cannot be found or installed.
error: command failed to execute correctly
(4/5) Check if user should be informed about rebooting after certain system package upgrades.
(5/5) Checking which packages need to be rebuilt
fatal library error, lookup self

This is the problem. That is a pretty interesting error.

Can you share the output of:

pacman -Q | grep -E "dracut|grub"

I changed to amdgpu recently

[root@EndeavourOS /]# pacman -Q | grep -E "dracut|grub"
dracut 059-5
eos-dracut 1.3-1
grub 2:2.12-1
grub-customizer 5.2.4-1

Can you share the output of cat /etc/dracut.conf.d/*

Output this:

[root@EndeavourOS /]# cat /etc/dracut.conf.d/*
add_dracutmodules+=" amdgpu "
omit_dracutmodules+=" radeon "
force_drivers+=" amdgpu "
omit_dracutmodules+=" network cifs nfs nbd brltty "
compress="zstd"

Remove these two lines. Those aren’t modules. They are drivers.

That is your issue.

1 Like

Nice, that was the issue, rebuild-dracut and reinstalled linux and linux-lts and worked, thanks a lot!

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.