linux-rpi 6.1.27-1 (Rpi 2 v7) not building initramfs

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

linux-rpi 6.1.27-1 (Rpi 2 v7) not building initramfs

Postby pezz » Wed May 03, 2023 5:50 am

Just updated my Pi2 and mkinitcpio is not building the initramfs image:

$this->bbcode_second_pass_code('', '
:: Running post-transaction hooks...
(1/3) Arming ConditionNeedsUpdate...
(2/3) Updating module dependencies...
(3/3) Updating linux-rpi initcpios...
==> Building image from preset: /etc/mkinitcpio.d/linux-rpi.preset: 'default'
==> WARNING: No kernel version specified. Skipping image 'default'')
I also noticed /etc/mkinitcpio.d/linux-rpi.preset is different to what's in Github, this line:

$this->bbcode_second_pass_code('', 'ALL_kver=""')
The repo has:

$this->bbcode_second_pass_code('', 'ALL_kver="%KERNVER%"')
But changing that line doesn't make it build. Specifying the new kernel version doesn't work either:

$this->bbcode_second_pass_code('', '# mkinitcpio -P -k 6.1.27-1-rpi-ARCH
==> Building image from preset: /etc/mkinitcpio.d/linux-rpi.preset: 'default'
==> WARNING: No kernel version specified. Skipping image 'default'')
Cheers.
pezz
 
Posts: 76
Joined: Fri Sep 14, 2012 11:19 pm
Location: Geelong, Australia

Re: linux-rpi 6.1.27-1 (Rpi 2 v7) not building initramfs

Postby solskogen » Wed May 03, 2023 7:17 am

I've edited /etc/mkinitcpio.d/linux-rpi.preset so that it reads

$this->bbcode_second_pass_code('', 'ALL_kver="6.1.27-1-rpi-ARCH"
')

Now mkinitpcio -P works.
solskogen
 
Posts: 215
Joined: Mon Nov 18, 2013 10:41 am

Re: linux-rpi 6.1.27-1 (Rpi 2 v7) not building initramfs

Postby pezz » Wed May 03, 2023 7:23 am

Nice, that works great.

I suppose "%KERNVER%" is meant to be populated during the package build but something happened this time?

I dunno, hopefully don't have to do it with every upgrade.

Cheers for that.
pezz
 
Posts: 76
Joined: Fri Sep 14, 2012 11:19 pm
Location: Geelong, Australia

Re: linux-rpi 6.1.27-1 (Rpi 2 v7) not building initramfs

Postby solskogen » Wed May 03, 2023 8:06 am

This should not happen, so @graysky will probably fix it shortly :-)
solskogen
 
Posts: 215
Joined: Mon Nov 18, 2013 10:41 am

Re: linux-rpi 6.1.27-1 (Rpi 2 v7) not building initramfs

Postby graysky » Wed May 03, 2023 4:46 pm

Thanks for reporting, fixed in 6.1.27-2
graysky
Developer
 
Posts: 1870
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Re: linux-rpi 6.1.27-1 (Rpi 2 v7) not building initramfs

Postby pezz » Thu May 04, 2023 1:41 am

Thanks heaps graysky, just waiting for this to hit the repos.
pezz
 
Posts: 76
Joined: Fri Sep 14, 2012 11:19 pm
Location: Geelong, Australia

Re: linux-rpi 6.1.27-1 (Rpi 2 v7) not building initramfs

Postby solskogen » Thu May 04, 2023 1:10 pm

As it haven't hit the mirrors I guess (and hope) that a major rebuild is happening with newest gcc/binutils and glibc toolchain :-)
solskogen
 
Posts: 215
Joined: Mon Nov 18, 2013 10:41 am

Re: linux-rpi 6.1.27-1 (Rpi 2 v7) not building initramfs

Postby tomty89 » Mon May 08, 2023 9:01 am

Hi graysky. I think it's still wrong? It should be $this->bbcode_second_pass_code('', '$(<version)') instead of $this->bbcode_second_pass_code('', '$(version)')?
tomty89
 
Posts: 8
Joined: Sun Jan 06, 2019 5:30 pm

Re: linux-rpi 6.1.27-1 (Rpi 2 v7) not building initramfs

Postby tiagoboldt » Mon May 08, 2023 1:41 pm

I use RAID1 with mdadm and after rebooting, the md module was no longer available, meaning I am now unable to boot. I've managed to boot a live system and chroot into my arch installation and rebuild the kernel with the instructions above, ensuring that the mdadm configuration was on the mkinitcpio HOOKS, but to no avail.

Could there be some relation to this issue? I'll try to update the kernel on the chroot environment to see if that helps soon, but working out of the live environment is slow as I do not have easy access to this server.
tiagoboldt
 
Posts: 20
Joined: Wed Feb 10, 2016 11:14 am

Re: linux-rpi 6.1.27-1 (Rpi 2 v7) not building initramfs

Postby graysky » Mon May 08, 2023 4:34 pm

Yes, it should. Fixed in 6.1.27-3, thanks for pointing that out.
graysky
Developer
 
Posts: 1870
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Next

Return to Packages

Who is online

Users browsing this forum: No registered users and 35 guests