Skip to main content
Topic solved
This topic has been marked as solved and requires no further attention.
Topic: [SOLVED] Stumbled on: 'ERROR: Hook 'udev' cannot be found' (Read 878 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

[SOLVED] Stumbled on: 'ERROR: Hook 'udev' cannot be found'

Help solve error in kernel update install
...
Code: [Select]
==> Starting build: '6.7.9-artix1-1'
  -> Running build hook: [base]
==> ERROR: Hook 'udev' cannot be found
...

on /etc/mkinitcpio.conf

there is
Code: [Select]
HOOKS="base udev autodetect modconf block keyboard keymap consolefont filesystems fsck"

What is incorrect mechanism here?

Edit
all messages:
Code: [Select]
:: Running post-transaction hooks...
(1/2) Updating module dependencies...
(2/2) 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 --microcode /boot/intel-ucode.img
==> Starting build: '6.7.9-artix1-1'
  -> Running build hook: [base]
==> ERROR: Hook 'udev' cannot be found
  -> Running build hook: [autodetect]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
==> WARNING: Possibly missing firmware for module: 'xhci_pci'
  -> Running build hook: [keyboard]
  -> Running build hook: [keymap]
  -> Running build hook: [consolefont]
==> WARNING: consolefont: no font found in configuration
  -> Running build hook: [filesystems]
  -> Running build hook: [fsck]
==> Generating module dependencies
==> 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 --microcode /boot/intel-ucode.img
==> Starting build: '6.7.9-artix1-1'
  -> Running build hook: [base]
==> ERROR: Hook 'udev' cannot be found
  -> Running build hook: [modconf]
  -> Running build hook: [block]
==> WARNING: Possibly missing firmware for module: 'qed'
==> WARNING: Possibly missing firmware for module: 'qla1280'
==> WARNING: Possibly missing firmware for module: 'aic94xx'
==> WARNING: Possibly missing firmware for module: 'qla2xxx'
==> WARNING: Possibly missing firmware for module: 'bfa'
==> WARNING: Possibly missing firmware for module: 'wd719x'
==> WARNING: Possibly missing firmware for module: 'xhci_pci'
  -> Running build hook: [keyboard]
  -> Running build hook: [keymap]
  -> Running build hook: [consolefont]
==> WARNING: consolefont: no font found in configuration
  -> Running build hook: [filesystems]
  -> Running build hook: [fsck]
==> Generating module dependencies
==> 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

Re: Stumbled on: 'ERROR: Hook 'udev' cannot be found'

Reply #1
Check if your mkinitcpio is up to date, current version is 38.1-1.

Check hooks.
Code: [Select]
# mkinitcpio -L

If there's no udev there, check if you have /usr/lib/initcpio/install/udev.

 

Re: Stumbled on: 'ERROR: Hook 'udev' cannot be found'

Reply #2
Check if your mkinitcpio is up to date, current version is 38.1-1.

Check hooks.
Code: [Select]
# mkinitcpio -L

If there's no udev there, check if you have /usr/lib/initcpio/install/udev.
Yup, missing
Myself to blame being lazy updating mkinitcpio since it conflicts lvm2 & lvm2-openrc of which getting rid now
So solved after r mkinitcpio gets updated to version is 38.1-1.