Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#78499 - mkinitcpio and kernel changes

Attached to Project: Arch Linux
Opened by David Summers (summers) - Friday, 12 May 2023, 13:31 GMT
Last edited by Toolybird (Toolybird) - Friday, 12 May 2023, 23:31 GMT
Task Type Bug Report
Category Packages: Extra
Status Waiting on Response
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No

Details

Description: mkinitpio -p linux on old systems fails with looking for modules in /lib


Additional info:
* package version(s) : mkinitcpio-35.2-1
* config and/or log files etc. : /etc/mkintcpio.d/linux.preset
* link to upstream bug report, if any

Steps to reproduce:

On my ten year old system, on update (first in 4 months or so) and mkinitcpio -p linux fails as it looks for modules in /lib/modules.

passing "-r /usr/lib" and same error.

The wiki pages don't help, it does say what the prefered linux.preset is. nowhere does it say where to change the kernel module location.

This has made two of my machines unbootable.

It seems connected to changes in where the kernel lives in the kernel package, as thats moved from /boot.
This task depends upon

Comment by Doug Newgard (Scimmia) - Friday, 12 May 2023, 15:30 GMT
Actual errors?
Comment by David Summers (summers) - Friday, 12 May 2023, 19:03 GMT
it looks for kernel modules in /lib/modules - but the modules are in /usr/lib/modules
Comment by Doug Newgard (Scimmia) - Friday, 12 May 2023, 19:07 GMT
And /lib is a symlink, so that doesn't matter.

Actual errors, and actual changes you made to linux.preset, or this is useless.
Comment by Toolybird (Toolybird) - Friday, 12 May 2023, 23:31 GMT
Something definitely seems fishy here. Your "modules location" theory sounds way off. There must be something amiss with your system as this doesn't sound like a bug in either mkinitcpio or the kernel. In general, you are expected to update your Arch system regularly [1]. If you don't, trouble is bound to happen. Please visit the proper Arch support channels (Forum/IRC/Mailing Lists/Reddit/etc) to see if anyone can help troubleshoot your issue.

[1] https://wiki.archlinux.org/title/System_maintenance#Upgrading_the_system
Comment by Doug Newgard (Scimmia) - Friday, 12 May 2023, 23:47 GMT
I've actually seen something similar to this with a really weird .preset file. It was moving things around when it shouldn't be. If that's what's going on here, it's a configuration issue, not a bug, but without errors, it's a shot in the dark.

Loading...