You are not logged in.

#1 2023-01-29 23:12:18

stefano
Member
Registered: 2011-04-09
Posts: 265

Linux kernel 6.1.8-arch1 upgrade fails during mkinitcpio hook [SOLVED]

My system upgrade to the latest kernel (both standard and lts) fails during the mkinitcpio post-install hook. Pacman reports the following:

==> 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: 6.1.8-arch1-1
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [autodetect]
  -> Running build hook: [modconf]
  -> Running build hook: [kms]
  -> Running build hook: [keyboard]
==> WARNING: Possibly missing firmware for module: xhci_pci
  -> Running build hook: [keymap]

after which mkinitcpio is stuck forever.
What can I try? And should I try downgrading the kernel to the previous version before proceeding further? I am afraid the box may not be  in a bootable  state right now

Last edited by stefano (2023-01-30 04:27:33)

Offline

#2 2023-01-30 04:26:56

stefano
Member
Registered: 2011-04-09
Posts: 265

Re: Linux kernel 6.1.8-arch1 upgrade fails during mkinitcpio hook [SOLVED]

Downgrading the kernel to linux 6.1.7 and then re-updating actually solved the issue. Interestingly, mkinitcpio took about 4 hours to build the linux 6.1.7 image, instead of the usual couple of minutes it takes for all the images built so far. The successive upgrade to 6.1.8 went fast and smooth as usual. I have no idea what happened, but I'm certainly happy the problem got itself sorted out.

Offline

#3 2023-01-30 08:34:12

d.ALT
Member
Registered: 2019-05-10
Posts: 927

Re: Linux kernel 6.1.8-arch1 upgrade fails during mkinitcpio hook [SOLVED]

stefano wrote:

mkinitcpio took about 4 hours to build

??? Asking to experts here: why on earth??


<49,17,III,I>    Fama di loro il mondo esser non lassa;
<50,17,III,I>    misericordia e giustizia li sdegna:
<51,17,III,I>    non ragioniam di lor, ma guarda e passa.

Offline

#4 2023-01-30 19:50:02

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 7,771
Website

Re: Linux kernel 6.1.8-arch1 upgrade fails during mkinitcpio hook [SOLVED]

The OP can copy /usr/bin/mkinitcpio to /usr/local/bin/mkinitcpio then edit the latter file and add this just after the shebang:

set -x

That should show which section of the script is pausing if it happens again.

Disclaimer: I'm no expert :-)

Offline

Board footer

Powered by FluxBB