You are not logged in.

#1 2016-05-07 19:41:08

pedrogabriel
Member
From: Brazil
Registered: 2014-08-17
Posts: 30

Why the mkinitcpio thing is not a alpm hook?

Every time I update my kernel I get the following:

>>> Updating module dependencies. Please wait ...
>>> Generating initial ramdisk, using mkinitcpio. Please wait...
==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'default'
  -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img
==> Starting build: 4.5.2-1-ARCH
  -> Running build hook: [base]
  -> Running build hook: [systemd]
  -> Running build hook: [autodetect]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
  -> Running build hook: [filesystems]
  -> Running build hook: [fsck]
==> ERROR: module not found: `bbswitch'
==> Generating module dependencies
==> Creating gzip-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'
  -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-fallback.img -S autodetect
==> Starting build: 4.5.2-1-ARCH
  -> Running build hook: [base]
  -> Running build hook: [systemd]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
==> WARNING: Possibly missing firmware for module: wd719x
==> WARNING: Possibly missing firmware for module: aic94xx
  -> Running build hook: [filesystems]
  -> Running build hook: [fsck]
==> ERROR: module not found: `bbswitch'
==> Generating module dependencies
==> Creating gzip-compressed initcpio image: /boot/initramfs-linux-fallback.img
==> WARNING: errors were encountered during the build. The image may not be complete.

So since it rebuilds mkinitcpio before the dkms hook takes place it obviously doesn't find the bbswitch module to add to my initramfs (if I was using the nvidia module directly I would have the same problem, since the nvidia module is also run dynamically)
What I suggest is having a hook to play mkinitcpio after the dkms takes place. Could we discuss this approach?

Offline

#2 2016-05-07 21:12:42

djgera
Developer
From: Buenos Aires - Argentina
Registered: 2008-12-24
Posts: 723
Website

Re: Why the mkinitcpio thing is not a alpm hook?

Offline

#3 2016-05-09 02:14:59

pedrogabriel
Member
From: Brazil
Registered: 2014-08-17
Posts: 30

Re: Why the mkinitcpio thing is not a alpm hook?

It's a nice thing to hear. Thank you.

Offline

Board footer

Powered by FluxBB