Sunday, October 14, 2012

Arch Linux Kernel Upgrade Broke Modules

I ran a full upgrade using 'pacman -Syu' which included a kernel upgrade.

It started fine but then went into the toilet, as follows:

(1/1) upgrading linux                                                       [###########################################] 100%
>>> Updating module dependencies. Please wait ...
ERROR: could not open directory /lib/modules/3.5.6-1-ARCH: No such file or directory
FATAL: could not search modules: No such file or directory
>>> Generating initial ramdisk, using mkinitcpio.  Please wait...
==> Building image from preset: 'default'
  -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img
==> Starting build: 3.5.6-1-ARCH
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [autodetect]
  -> Running build hook: [pata]
  -> Running build hook: [scsi]
  -> Running build hook: [sata]
  -> Running build hook: [filesystems]
  -> Running build hook: [usbinput]
==> ERROR: module not found: `hid_apple'
==> ERROR: module not found: `hid_logitech_dj'
==> ERROR: module not found: `hid_hyperv'
==> ERROR: module not found: `hid_saitek'
==> ERROR: module not found: `hid_generic'
==> ERROR: module not found: `hid_axff'
==> ERROR: module not found: `hid_dr'
==> ERROR: module not found: `hid_cypress'
.
.
.
.
.==> ERROR: module not found: `hid_gaff'
==> ERROR: module not found: `hid_picolcd'
==> ERROR: module not found: `hid_twinhan'
  -> Running build hook: [fsck]
==> WARNING: No modules were added to the image. This is probably not what you want.
==> Creating gzip initcpio image: /boot/initramfs-linux.img
==> WARNING: errors were encountered during the build. The image may not be complete.
==> Building image from preset: 'fallback'
  -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-fallback.img -S autodetect
==> Starting build: 3.5.6-1-ARCH
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [pata]
==> ERROR: module not found: `pata_cmd640'
==> ERROR: module not found: `pata_ns87410'
==> ERROR: module not found: `pata_via'
==> ERROR: module not found: `pata_cs5535'

Arseburger was shouted loudly.

Dr. Google did not help.

It seems that the kernel modules have moved to /usr/lib/modules from /lib/modules

I put a symlink in /lib to the new location. ln -s /usr/lib/modules /lib/modules

I then ran the install of the kernel again and all was good.

WooHoo! Simple really

No comments:

Post a Comment