You are not logged in.
Pages: 1
Topic closed
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
With what kernel package and what mkinitcpio package?
Online
Packages are linux 5.4.11.arch1-1 and mkinitcpio 27-2
Offline
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
/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
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
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.
I love you tbw. Same problem here and same solution, and as you, I have no idea why my linux.preset file was empty. THANK YOU A LOT.
Offline
For the fellows that think that they can pacstrap without the "base" package, and somewhere along the way encounter:
(11/12) Updating linux initcpios...
/usr/share/libalpm/scripts/mkinitcpio: line 31: sed: command not found
==> WARNING: Preset file `/etc/mkinitcpio.d/linux.preset' is empty or does not contain any presets.
That will result in having an
To resolve this situation, it might be wise to install the "base" package after all. Delete the preset.
# rm /etc/mkinitcpio.d/linux.preset
And when inside the arch-chroot already run
# pacman -S linux
to re-generate /etc/mkinitcpio.d/linux.preset with the correct default content.
Offline
Just out of curiosity, would it not make sense for the mkinitcpio pkg itself to have sed as a dependency explicitly listed ? This way, if base is not used for whatever reason, then at least it will get pulled in as part of the dependency resolution. The bonus is that dependency resolution gets more granular and detailed.
Last edited by scruffidog (2023-03-12 22:05:53)
Offline
Without base, it isn't an Arch Linux install:
Minimal package set to define a basic Arch Linux installation
Offline
Thanks for the tips, just a heads-up:
[Solved] Error preparing initrd: Not Found after today update
Offline
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Offline
Pages: 1
Topic closed