mkinitcpio-37-1 upgrade error

Problems with packages? Post here, using [tags] of the package name.

Re: mkinitcpio-37-1 upgrade error

Postby mtnflyr » Sat Dec 09, 2023 8:33 pm

I have been performing upgrades as normal with the previously mentioned line commented out in /usr/lib/initcpio/install/kms. All updates that have prompted image rebuild have been successful. Have not yet noticed any side effects from this workaround.

(5/7) Updating linux-rpi initcpios...
==> Building image from preset: /etc/mkinitcpio.d/linux-rpi.preset: 'default'
....
==> Image generation successful
mtnflyr
 
Posts: 7
Joined: Fri Nov 17, 2023 11:36 pm

Re: mkinitcpio-37-1 upgrade error

Postby xywdcrebzughfcfaba » Wed Dec 27, 2023 10:28 pm

Commenting the line
[code]add_checked_modules_from_symbol 'drm_privacy_screen_register' '=drivers/platform'[/code]
in [b]/usr/lib/initcpio/install/kms[/b] is still needed for [code]mkinitcpio-37.1-2[/code].
xywdcrebzughfcfaba
 
Posts: 5
Joined: Mon Aug 10, 2020 4:20 pm

Re: mkinitcpio-37-1 upgrade error

Postby mcloaked » Mon Jan 08, 2024 4:56 pm

I had a look at the file /usr/lib/initcpio/install/kms on both my archlinuxarm machines and my laptop running arch linux.

The line concerned is different in archlinuxarm!

On archlinuxarm the line is:

add_module_from_symbol 'drm_privacy_screen_register' '=drivers/platform'

and on the Arch Linux laptop the line is:

add_checked_modules_from_symbol 'drm_privacy_screen_register' '=drivers/platform'

I am wondering if the difference is behind this problem?
mcloaked
 
Posts: 83
Joined: Thu Oct 16, 2014 4:16 pm

Re: mkinitcpio-37-1 upgrade error

Postby bulletmark » Mon Jan 08, 2024 10:55 pm

@mcloaked, on my Arch and my Arch-arm boxes the file is the same as the second line you show.
bulletmark
 
Posts: 98
Joined: Tue Oct 13, 2015 10:17 pm

Re: mkinitcpio-37-1 upgrade error

Postby mcloaked » Tue Jan 09, 2024 10:32 am

I should have been clearer - with the update mkinitcpio 36-1 -> 37.1-2 is where that file had the line changed to be the same as you quote. Prior to version 37.1 it was as I quoted. Commenting our the line leads to no warning when running mkinitcpio - so I am wondering whether putting the line back as it was in the mkinitcpio version 36.1 might also lead to no warning! However as other users have posted commenting out the line leads to no warning and no problem rebooting.
mcloaked
 
Posts: 83
Joined: Thu Oct 16, 2014 4:16 pm

Re: mkinitcpio-37-1 upgrade error

Postby mcloaked » Tue Jan 16, 2024 2:06 pm

With the update mkinitcpio 37.1-2 -> 37.2-1 the file /usr/lib/initcpio/install/kms is recreated during the update back to the original and then needs to be edited again to comment out the problematic line.

I wonder if kms is actually needed in the line in /etc/mkinitcpio.conf ?

So if kms was removed from:

HOOKS=(base udev autodetect modconf kms keyboard keymap consolefont block filesystems fsck)

is it possible that this is an alternate way to work around the problem?
mcloaked
 
Posts: 83
Joined: Thu Oct 16, 2014 4:16 pm

Re: mkinitcpio-37-1 upgrade error

Postby mtnflyr » Sat Jan 20, 2024 3:16 pm

@mccloaked - Just tried your suggestion to remove kms from the HOOKS array in mkinitcpio.conf

I was then able to uncomment the troublesome line in /usr/lib/initcpio/install/kms and successfully rebuild the image with:

[code]sudo mkinitcpio -p linux-rpi[/code]

Reboot was also successful. So far, so good on my headless RPi4 system.
mtnflyr
 
Posts: 7
Joined: Fri Nov 17, 2023 11:36 pm

Re: mkinitcpio-37-1 upgrade error

Postby graysky » Sat Jan 20, 2024 4:42 pm

Do you actually need the initramfs for your use case? All of my Pis boot without the image. I actually suppress its generation with a symlink:

[code]
% ls -l /etc/pacman.d/hooks/
total 0
lrwxrwxrwx 1 root root 9 Jan 19 07:10 90-mkinitcpio-install.hook -> /dev/null
[/code]
graysky
Developer
 
Posts: 1731
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Re: mkinitcpio-37-1 upgrade error

Postby mcloaked » Sun Jan 21, 2024 8:09 pm

Interesting suggestion - I will have to look at my logs.... I am using a rock64 but clearly I need to learn how the boot process actually works in detail. The initial install instructions from this site set up the boot process, and I never questioned the need for the initramfs it always generated. I will look to see if there is a description of the boot process that allows me to understand the flow for getting the kernel running - and go from there. My initial search didn't lead me to the detail I need.
mcloaked
 
Posts: 83
Joined: Thu Oct 16, 2014 4:16 pm

Re: mkinitcpio-37-1 upgrade error

Postby graysky » Sun Jan 21, 2024 8:57 pm

Ah, I was referring to booting RPi series of hardware which in my experience do not need the file at all. I have no experience with SOCs.
graysky
Developer
 
Posts: 1731
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

PreviousNext

Return to Packages

Who is online

Users browsing this forum: No registered users and 4 guests