You are not logged in.

#1 2020-01-14 19:52:02

syamajala
Member
From: here, there, everywhere
Registered: 2005-01-25
Posts: 612
Website

[SOLVED] initcpio not being generated after kernel upgrade with pacman

The pacman hook for generating a new initcpio when there is a kernel update no longer seems to be working for me. I see its running something because it prints ( 6/15) Updating linux initcpios... but there is never a initcpio image in /boot after it runs.

Last edited by syamajala (2020-01-20 00:52:36)

Offline

#2 2020-01-15 00:06:50

Scimmia
Bug Wrangler
Registered: 2012-09-01
Posts: 7,893

Re: [SOLVED] initcpio not being generated after kernel upgrade with pacman

With what kernel package and what mkinitcpio package?

Online

#3 2020-01-15 00:08:29

syamajala
Member
From: here, there, everywhere
Registered: 2005-01-25
Posts: 612
Website

Re: [SOLVED] initcpio not being generated after kernel upgrade with pacman

Packages are linux 5.4.11.arch1-1 and mkinitcpio 27-2

Offline

#4 2020-01-20 00:52:23

syamajala
Member
From: here, there, everywhere
Registered: 2005-01-25
Posts: 612
Website

Re: [SOLVED] initcpio not being generated after kernel upgrade with pacman

I finally figured it out. The issue is /etc/mkinitcpio.d/linux.preset no package seems to own that file, but it was empty for some reason. It needs to have this in it:

# mkinitcpio preset file for the 'linux' package

ALL_config="/etc/mkinitcpio.conf"
ALL_kver="/boot/vmlinuz-linux"

PRESETS=('default' 'fallback')

#default_config="/etc/mkinitcpio.conf"
default_image="/boot/initramfs-linux.img"
#default_options=""

#fallback_config="/etc/mkinitcpio.conf"
fallback_image="/boot/initramfs-linux-fallback.img"
fallback_options="-S autodetect"

Offline

#5 2020-01-20 01:09:58

loqs
Member
Registered: 2014-03-06
Posts: 11,694

Re: [SOLVED] initcpio not being generated after kernel upgrade with pacman

/etc/mkinitcpio.d/linux.preset should have been created by the pacman hook /usr/share/libalpm/hooks/90-mkinitcpio-install.hook
I would suggest checking /var/log/pacman.log to see if the hook was called and if it was if it failed.

Last edited by loqs (2020-01-20 01:10:13)

Offline

#6 2020-03-30 19:09:29

tbw
Member
Registered: 2017-01-01
Posts: 9

Re: [SOLVED] initcpio not being generated after kernel upgrade with pacman

I'm bumping this thread since I happened to have the very same issue and solved it very simply: I deleted the empty linux.preset file syamajala mentioned, and re-run the install of the linux package. The linux.preset file was correctly generated and all worked fine from there.

As to why and how the linux.preset file ended up being empty in the first place, I have no idea.

Offline

Board footer

Powered by FluxBB