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#79466 - [nvidia-lts] running early kms mkinitcpio reports nvidia modules missing

Attached to Project: Arch Linux
Opened by sh1sh1n11 (sh1sh1n11) - Thursday, 24 August 2023, 09:58 GMT
Last edited by Toolybird (Toolybird) - Thursday, 24 August 2023, 22:18 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To No-one
Architecture x86_64
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

Hi,

I've tried installing nvidia-lts 1:535.104.05 twice now. And each time my early kms minitcpio failed with error messages indicating that the nvidia modules were not found. This includes nvidia, nvidia_drm, nvidia_uvm, and nvidia_modeset.

Additional info:
* package version(s) - nvidia-lts 1:535.104.05
* config and/or log files etc.

❯ cat /etc/pacman.d/hooks/nvidia.hook
[Trigger]
Operation=Install
Operation=Upgrade
Operation=Remove
Type=Package
#Target=nvidia
#Target=nvidia-dkms
Target=nvidia-lts
#Target=linux
Target=linux-lts
# Change the linux part above and in the Exec line if a different kernel is used

[Action]
Description=Update NVIDIA module in initcpio
Depends=mkinitcpio
When=PostTransaction
NeedsTargets
Exec=/bin/sh -c 'while read -r trg; do case $trg in linux-lts) exit 0; esac; done; /usr/bin/mkinitcpio -P'

-> Relevant excerpt from my /etc/mkinitcpio.conf file.
MODULES=(i915 nvidia nvidia_modeset nvidia_uvm nvidia_drm)

* link to upstream bug report, if any

Steps to reproduce:

Note: Take a system backup using a tool like linux-mint Timeshift.

1. Set up early KMS for MODULES=(i915 nvidia nvidia_modeset nvidia_uvm nvidia_drm)
2. Install the specified nvidia-lts package.
3. Let pacman hook run mkinitcpio or run it manually using sudo mkinitcpio -P
4. Notice the errors regarding the missing nvidia modules at the time of image / initramfs generation.
5. At this point the system fails to boot due to the missing nvidia modules.
6. Restore from backup using Timeshift.
This task depends upon

Closed by  Toolybird (Toolybird)
Thursday, 24 August 2023, 22:18 GMT
Reason for closing:  Fixed
Additional comments about closing:  nvidia-lts 1:535.104.05-4
Comment by Doug Newgard (Scimmia) - Thursday, 24 August 2023, 13:07 GMT
with what *package* version, and what kernel, exactly?
Comment by sh1sh1n11 (sh1sh1n11) - Thursday, 24 August 2023, 13:46 GMT
Thanks for the quick response Doug. I tried running it again, this time pacman picked up nvidia-lts 1:535.104.05-3 and installed successfully along with early kms and "mkinitcpio -P" also ran successfully with the same linux-lts 6.1.46-1-lts kernel as before.

Since there have been a couple of updates in the past 24 hours. I think the one that failed for me might have been nvidia-lts 535.104.05-2. Since this has been fixed in nvidia-lts 1:535.104.05-3, please let me know if I should close this issue. Thank you.
Comment by porzione (porzione) - Thursday, 24 August 2023, 16:39 GMT
confirm that with nvidia 535.104.05-1 system in unbootable (likely the same initcpio issue), fixed with downgrade nvidia to 535.98-4

Loading...