You are not logged in.

#1 2025-03-16 08:56:53

mouseman
Member
From: Outta nowhere
Registered: 2014-04-04
Posts: 298

mkinitcpio warning no modules added

Recently I have to downgrade the kernel because when it updates I get an image without any modules added.

I think this started after installing r8152-dkms 2.19.2-1 from Aur, although I'm not entirely sure its the cause of my problems. During the installation dkms worked fine, and after reboots all modules (and network) worked fine for a while. I didn't keep track of whether new kernels were installed.

Then after a recent upgrade of the kernel, I ended up without any kernel modules loaded after a reboot. Many devices, including onboard nic and bluetooth no longer worked. I downgraded the kernel from /var/cache/pacman after which everything worked again.

I no longer need r8152-dkms package, and I removed it. I see this in the output:

❯ pacman -Rcn r8152-dkms
checking dependencies...

Package (1)  Old Version  Net Change

r8152-dkms   2.19.2-1      -0.76 MiB

Total Removed Size:  0.76 MiB

:: Do you want to remove these packages? [Y/n] y
:: Running pre-transaction hooks...
(1/1) Remove DKMS modules
==> dkms remove --no-depmod r8152/2.19.2 -k 6.13.6-arch1-1
==> depmod 6.13.6-arch1-1
:: Processing package changes...
(1/1) removing r8152-dkms                                                [########################################] 100%
:: Running post-transaction hooks...
(1/3) Reloading device manager configuration...
(2/3) Arming ConditionNeedsUpdate...
(3/3) Updating linux initcpios...
==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'default'
==> Using default configuration file: '/etc/mkinitcpio.conf'
  -> -k /boot/vmlinuz-linux -g /boot/initramfs-linux.img
==> Starting build: '6.13.7-arch1-1'
  -> Running build hook: [base]
  -> Running build hook: [systemd]
==> ERROR: module not found: 'crypto_lzo'
==> ERROR: module not found: 'crypto_lz4'
  -> Running build hook: [autodetect]
==> ERROR: Cannot acquire used modules. Unable to use autodetection.
  -> Running build hook: [microcode]
  -> Running build hook: [modconf]
  -> Running build hook: [kms]
==> WARNING: No module containing the symbol 'drm_privacy_screen_register' found in: 'drivers/platform'
  -> Running build hook: [keyboard]
==> ERROR: module not found: 'usbhid'
  -> Running build hook: [keymap]
  -> Running build hook: [consolefont]
==> WARNING: consolefont: no font found in configuration
  -> Running build hook: [block]
  -> Running build hook: [lvm2]
==> ERROR: module not found: 'dm_mod'
  -> Running build hook: [filesystems]
  -> Running build hook: [fsck]
==> WARNING: No modules were added to the image. This is probably not what you want.
==> Creating zstd-compressed initcpio image: '/boot/initramfs-linux.img'
==> WARNING: errors were encountered during the build. The image may not be complete.
==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'fallback'
==> Using default configuration file: '/etc/mkinitcpio.conf'
  -> -k /boot/vmlinuz-linux -g /boot/initramfs-linux-fallback.img -S autodetect
==> Starting build: '6.13.7-arch1-1'
  -> Running build hook: [base]
  -> Running build hook: [systemd]
==> ERROR: module not found: 'crypto_lzo'
==> ERROR: module not found: 'crypto_lz4'
  -> Running build hook: [microcode]
  -> Running build hook: [modconf]
  -> Running build hook: [kms]
==> WARNING: No module containing the symbol 'drm_privacy_screen_register' found in: 'drivers/platform'
  -> Running build hook: [keyboard]
==> ERROR: module not found: 'usbhid'
  -> Running build hook: [keymap]
  -> Running build hook: [consolefont]
==> WARNING: consolefont: no font found in configuration
  -> Running build hook: [block]
  -> Running build hook: [lvm2]
==> ERROR: module not found: 'dm_mod'
  -> Running build hook: [filesystems]
  -> Running build hook: [fsck]
==> WARNING: No modules were added to the image. This is probably not what you want.
==> Creating zstd-compressed initcpio image: '/boot/initramfs-linux-fallback.img'
==> WARNING: errors were encountered during the build. The image may not be complete.
error: command failed to execute correctly

When I run mkinitcpio -P I get the same warning about no modules being added. I see the errors and if I am not mistaken these are provided by linux-firmware package?

I revert to 6.13.6-arch1-1 by installing linux and linux-firmware packages from /var/cache/pkg using pacman -U, and everything is fine again.

Can someone help me figure out what is going wrong here?

Thanks!

Offline

#2 2025-03-16 10:55:24

xerxes_
Member
Registered: 2018-04-29
Posts: 1,053

Re: mkinitcpio warning no modules added

Did you mount /boot before update?

Offline

#3 2025-03-16 11:22:02

mouseman
Member
From: Outta nowhere
Registered: 2014-04-04
Posts: 298

Re: mkinitcpio warning no modules added

xerxes_ wrote:

Did you mount /boot before update?

Boot is mounted and has enough free space.

Offline

#4 2025-03-16 11:42:57

xerxes_
Member
Registered: 2018-04-29
Posts: 1,053

Re: mkinitcpio warning no modules added

You have not standard /etc/mkinitcpio.conf configuration. For example: you don't have udev at all. See here: https://wiki.archlinux.org/title/Mkinitcpio

Offline

#5 2025-03-16 12:05:29

mouseman
Member
From: Outta nowhere
Registered: 2014-04-04
Posts: 298

Re: mkinitcpio warning no modules added

xerxes_ wrote:

You have not standard /etc/mkinitcpio.conf configuration. For example: you don't have udev at all. See here: https://wiki.archlinux.org/title/Mkinitcpio

I do. It all works for the current kernel just not the new ones. This machine has been working for years. I just double checked mkinitcpio.conf and the file looks good. udev is default from the installation, I haven't touched it. Checked it against a new install I did last week and its the same.

Offline

#6 2025-03-16 17:07:08

ReDress
Member
From: Nairobi
Registered: 2024-11-30
Posts: 245

Re: mkinitcpio warning no modules added

There seem to be errors throughout your whole `mkinitcpio` run.

My guess would be the first error clobbers the whole run but yeah even if that was not the case it would be a great idea to figure out and fix those errors first

Offline

#7 2025-03-21 06:06:36

mouseman
Member
From: Outta nowhere
Registered: 2014-04-04
Posts: 298

Re: mkinitcpio warning no modules added

I had to install the AUR package dkms-r8152 again and a full update ran fine, installed the new kernel and there are no more issues running mkinitcpio. I don't have time to figure this out, I expect it will return once I deinstall the r8152 drivers but I'll cross that bridge when I get there.

Offline

#8 2025-03-21 06:48:55

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,086

Re: mkinitcpio warning no modules added

==> dkms remove --no-depmod r8152/2.19.2 -k 6.13.6-arch1-1
==> depmod 6.13.6-arch1-1
  -> -k /boot/vmlinuz-linux -g /boot/initramfs-linux.img
==> Starting build: '6.13.7-arch1-1'
==> ERROR: module not found: 'crypto_lzo'

There's some weird stuff going on about the kernel versions.

r8152 was installed and gets removed for 6.13.6, is supposed ot run "--no-depmod" what apparently triggers a depmod and an initcpio rebuild for 6.13.7 which then fails to find some basic modules.

dkms status
uname -a
pacman -S kernel

Looking at https://aur.archlinux.org/cgit/aur.git/ … r8152-dkms -

DEST_MODULE_LOCATION[0]="/updates"

sounds wrong and probably should be like "/kernel/drivers/net/ethernet/realtek", but idk whether that could cause this behavior (on removal)

Offline

#9 2025-03-21 06:56:32

mouseman
Member
From: Outta nowhere
Registered: 2014-04-04
Posts: 298

Re: mkinitcpio warning no modules added

Thank you.

I will keep that in mind when I have to remove it again. I only need it to temporarily test a USB-C Network adapter and will remove it once I am done testing. I think its likely I will run into the same issue again once removed.

I'll update once that happens.

Offline

Board footer

Powered by FluxBB