You are not logged in.

#1 2014-04-05 08:29:33

dbbolton
Member
Registered: 2008-10-08
Posts: 41

mkinitcpio WARNING: No modules were added to the image.

I am trying to build a pf-kernel using this guide: https://wiki.archlinux.org/index.php/Ke … raditional

Everything went fine, but when I try to make the initramfs, I get this error:

mkinitcpio -k 3.13.3-pf-dbb-pf+ -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-dbb-pf.img
==> Starting build: 3.13.3-pf-dbb-pf+
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [autodetect]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
  -> Running build hook: [filesystems]
  -> Running build hook: [keyboard]
  -> Running build hook: [fsck]
==> WARNING: No modules were added to the image. This is probably not what you want.
==> Creating lz4 initcpio image: /boot/initramfs-linux-dbb-pf.img
==> Image generation successful

I searched the warning message, but all the posts I found were related to other errors, like a "module not found" or so. As you can see, I'm not getting any actual error message, just the warning.

Is this message just because the MODULES line of mkinitcpio.conf is blank, or something else?

Offline

#2 2014-04-05 10:24:17

Gcool
Member
Registered: 2011-08-16
Posts: 1,456

Re: mkinitcpio WARNING: No modules were added to the image.

Check if the kernel modules are actually in place in /lib/modules/<your_kernel_name>

If not, you probably forgot to run a "make modules_install" after compiling the kernel.


Burninate!

Offline

#3 2014-04-05 17:52:37

dbbolton
Member
Registered: 2008-10-08
Posts: 41

Re: mkinitcpio WARNING: No modules were added to the image.

I definitely ran `make modules_install`. Twice actually, because I thought something went wrong the first time.

A find command shows that there are some modules, but only a handful. My guess is that I forgot to copy a good config before running menuconfig, so I'll try building again.

I was wondering why it only took 10 minutes to build.

Offline

#4 2014-04-05 18:31:07

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,412

Re: mkinitcpio WARNING: No modules were added to the image.

Did you run a depmod? 

In any case, this leads of a gang load of untracked files in /usr.  It is probably better to either use the linux-pf AUR PKGBUILD, or write one up yourself really quick.

Offline

Board footer

Powered by FluxBB