Mkinitcpio update 37.2-1 break the System

You deleted nvidia-*.ko.xz and asking why you’re having errors?
Re-install linux66-nvidia package.

WARNING: errors were encountered during the build. The image may not be complete.

This can happen with linux419, linux54, linux510 and linux515 when kms hook is enabled. We should check if those images boot regardless. When using mkinitcpio -v -P I didn’t see any errors, though.

Seems there was more on that issue I fixed with my workaround. Now this is under review: functions/add_file: fix copying when parent is symlink (!295) · Merge requests · Arch Linux / Mkinitcpio / mkinitcpio · GitLab

So everyone affected with Nvidia modules please test 37.2-1.4

Seems we still need my patch for extramodules. so 37.2-1.5 it is …

So basically the new fix does what it should do. However we don’t want to copy a symlink for usr/lib/modules/*-MANJARO/extramodules/ Unlike Arch we still have there a symlink. As soon as someone enables uncompress of the modules it will actually uncompress it on your system and not in initramfs. Hence that why we had some sort of errors regarding that.

you can check via: sudo lsinitcpio /boot/initramfs-6.7-x86_64.img | grep extra if you have extra modules successfully copied.

Via sudo lsinitcpio -x /boot/initramfs-6.7-x86_64.img the content of the initramfs will get extracted into the current folder you executed the command. Then you can compare the original file from linux67-nvidia and the one you have included in your initramfs:

md5sum usr/lib/modules/6.7*MANJARO/extramodules/nvidia.ko*
371be7d82aebda157a88fc0bf0ec8410  usr/lib/modules/6.7.0-2-MANJARO/extramodules/nvidia.ko.xz
md5sum /usr/lib/modules/extramodules-6.7-MANJARO/nvidia.ko*
371be7d82aebda157a88fc0bf0ec8410  /usr/lib/modules/extramodules-6.7-MANJARO/nvidia.ko.xz

If you still get some errors, consider to remove and reinstall the extramodule package and try again.

I do

Because btrfs compresses /boot itself on my pc.

But i do think it will not be any problem at all, because btrfs will also compress the modules at usr/lib/modules/*-MANJARO/extramodules/

I have the initrd(cat) and the modules set to uncompressed.

But i am on stable, and so may not be able to help testing :man_shrugging:
I will try.

One 'Error'
( 5/12) Updating linux initcpios...
==> Building image from preset: /etc/mkinitcpio.d/linux515.preset: 'default'
==> Using configuration file: '/etc/mkinitcpio.conf'
  -> -k /boot/vmlinuz-5.15-x86_64 -c /etc/mkinitcpio.conf -g /boot/initramfs-5.15-x86_64.img
==> Starting build: '5.15.146-1-MANJARO'
  -> Running build hook: [base]
  -> Running build hook: [systemd]
  -> Running build hook: [autodetect]
  -> Running build hook: [modconf]
  -> Running build hook: [kms]
  -> Running build hook: [block]
  -> Running build hook: [keyboard]
  -> Running build hook: [sd-vconsole]
  -> Running build hook: [filesystems]
  -> Running build hook: [bootsplash-manjaro]
==> Generating module dependencies
==> Creating uncompressed initcpio image: '/boot/initramfs-5.15-x86_64.img'
==> WARNING: errors were encountered during the build. The image may not be complete.
==> Building image from preset: /etc/mkinitcpio.d/linux515.preset: 'fallback'
==> Using configuration file: '/etc/mkinitcpio.conf'
  -> -k /boot/vmlinuz-5.15-x86_64 -c /etc/mkinitcpio.conf -g /boot/initramfs-5.15-x86_64-fallback.img -S autodetect
==> Starting build: '5.15.146-1-MANJARO'
  -> Running build hook: [base]
  -> Running build hook: [systemd]
  -> Running build hook: [modconf]
  -> Running build hook: [kms]
==> WARNING: Possibly missing firmware for module: 'ast'
  -> Running build hook: [block]
==> WARNING: Possibly missing firmware for module: 'aic94xx'
==> WARNING: Possibly missing firmware for module: 'bfa'
==> WARNING: Possibly missing firmware for module: 'qed'
==> WARNING: Possibly missing firmware for module: 'qla1280'
==> WARNING: Possibly missing firmware for module: 'qla2xxx'
==> WARNING: Possibly missing firmware for module: 'wd719x'
  -> Running build hook: [keyboard]
  -> Running build hook: [sd-vconsole]
  -> Running build hook: [filesystems]
  -> Running build hook: [bootsplash-manjaro]
==> Generating module dependencies
==> Creating uncompressed initcpio image: '/boot/initramfs-5.15-x86_64-fallback.img'
==> WARNING: errors were encountered during the build. The image may not be complete.
==> Building image from preset: /etc/mkinitcpio.d/linux61.preset: 'default'
==> Using configuration file: '/etc/mkinitcpio.conf'
  -> -k /boot/vmlinuz-6.1-x86_64 -c /etc/mkinitcpio.conf -g /boot/initramfs-6.1-x86_64.img
==> Starting build: '6.1.71-1-MANJARO'
  -> Running build hook: [base]
  -> Running build hook: [systemd]
  -> Running build hook: [autodetect]
  -> Running build hook: [modconf]
  -> Running build hook: [kms]
  -> Running build hook: [block]
  -> Running build hook: [keyboard]
  -> Running build hook: [sd-vconsole]
  -> Running build hook: [filesystems]
  -> Running build hook: [bootsplash-manjaro]
==> Generating module dependencies
==> Creating uncompressed initcpio image: '/boot/initramfs-6.1-x86_64.img'
==> Image generation successful
==> Building image from preset: /etc/mkinitcpio.d/linux61.preset: 'fallback'
==> Using configuration file: '/etc/mkinitcpio.conf'
  -> -k /boot/vmlinuz-6.1-x86_64 -c /etc/mkinitcpio.conf -g /boot/initramfs-6.1-x86_64-fallback.img -S autodetect
==> Starting build: '6.1.71-1-MANJARO'
  -> Running build hook: [base]
  -> Running build hook: [systemd]
  -> Running build hook: [modconf]
  -> Running build hook: [kms]
==> WARNING: Possibly missing firmware for module: 'ast'
  -> Running build hook: [block]
==> WARNING: Possibly missing firmware for module: 'aic94xx'
==> WARNING: Possibly missing firmware for module: 'bfa'
==> WARNING: Possibly missing firmware for module: 'qed'
==> WARNING: Possibly missing firmware for module: 'qla1280'
==> WARNING: Possibly missing firmware for module: 'qla2xxx'
==> WARNING: Possibly missing firmware for module: 'wd719x'
  -> Running build hook: [keyboard]
  -> Running build hook: [sd-vconsole]
  -> Running build hook: [filesystems]
  -> Running build hook: [bootsplash-manjaro]
==> Generating module dependencies
==> Creating uncompressed initcpio image: '/boot/initramfs-6.1-x86_64-fallback.img'
==> Image generation successful
==> Building image from preset: /etc/mkinitcpio.d/linux67.preset: 'default'
==> Using default configuration file: '/etc/mkinitcpio.conf'
  -> -k /boot/vmlinuz-6.7-x86_64 -g /boot/initramfs-6.7-x86_64.img --microcode /boot/amd-ucode.img
==> Starting build: '6.7.0-0-MANJARO'
  -> Running build hook: [base]
  -> Running build hook: [systemd]
  -> Running build hook: [autodetect]
  -> Running build hook: [modconf]
  -> Running build hook: [kms]
  -> Running build hook: [block]
  -> Running build hook: [keyboard]
  -> Running build hook: [sd-vconsole]
  -> Running build hook: [filesystems]
  -> Running build hook: [bootsplash-manjaro]
==> Generating module dependencies
==> Creating uncompressed initcpio image: '/boot/initramfs-6.7-x86_64.img'
==> Image generation successful
==> Building image from preset: /etc/mkinitcpio.d/linux67.preset: 'fallback'
==> Using default configuration file: '/etc/mkinitcpio.conf'
  -> -k /boot/vmlinuz-6.7-x86_64 -g /boot/initramfs-6.7-x86_64-fallback.img -S autodetect --microcode /boot/amd-ucode.img
==> Starting build: '6.7.0-0-MANJARO'
  -> Running build hook: [base]
  -> Running build hook: [systemd]
  -> Running build hook: [modconf]
  -> Running build hook: [kms]
==> WARNING: Possibly missing firmware for module: 'ast'
  -> Running build hook: [block]
==> WARNING: Possibly missing firmware for module: 'aic94xx'
==> WARNING: Possibly missing firmware for module: 'bfa'
==> WARNING: Possibly missing firmware for module: 'qed'
==> WARNING: Possibly missing firmware for module: 'qla1280'
==> WARNING: Possibly missing firmware for module: 'qla2xxx'
==> WARNING: Possibly missing firmware for module: 'wd719x'
  -> Running build hook: [keyboard]
  -> Running build hook: [sd-vconsole]
  -> Running build hook: [filesystems]
  -> Running build hook: [bootsplash-manjaro]
==> Generating module dependencies
==> Creating uncompressed initcpio image: '/boot/initramfs-6.7-x86_64-fallback.img'
==> Image generation successful
Fehler: Befehl konnte nicht korrekt ausgeführt werden
( 6/12) Compiling GSettings XML schema files...

:hammer_and_wrench: It boots with 6.7 :smiling_face_with_three_hearts:

Seems when I try to package mkinitcpio on linux515 running I get this error:

 ✗ find_module_from_symbol
   (in test file test/cases/functions.bats, line 217)
     `assert_output --partial "thinkpad_acpi"' failed
   
   -- output does not contain substring --
   substring : thinkpad_acpi
   output    :
   --
   

Might be some indicator why we get that warming message. Have to dig more into that. 5.15 initramfs boots fine however. More info here: functions: implement find_module_from_symbol (e66b2093) · Commits · Arch Linux / Mkinitcpio / mkinitcpio · GitLab

1 Like