PI 5 kernel update to 6.18.4 fails booting

Open
#7,196 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
linux, raspberry-pi

Research direction

Start by reproducing the failure with pacman -Syu linux-rpi on a Raspberry Pi 5 using a Btrfs root and VFAT boot partition. Inspect the 6.18.4 initramfs with lsinitcpio initramfs-linux.img and compare it with the working 6.12.61-1-rpi setup; done means identifying the boot regression and restoring a successful boot.

Written by the indexing model from the issue text.

Description

Describe the bug

I have a PI 5 with linux-rpi kernel installed, I am using btrfs for root partition and vfat for boot.
after updating kernel to linux-rpi 6.18.4, the system can not boot

Image
Failed to pivot root to new rootfs '/run/systemd/mount-rootfs': Invalid argument
Will try to use NS_MOVE instead: Invalid argument

and for btrfs:

lsinitcpio initramfs-linux.img | grep btrfs
usr/bin/fsck.btrfs
usr/lib/udev/rules.d/64-btrfs.rules
Steps to reproduce the behaviour

pacman -Syu linux-rpi

Device (s)

Raspberry Pi 5

System

2025/01/27 13:08:59
Copyright (c) 2012 Broadcom
version 76eda9d7 (release) (embedded)

previous kernel: 6.12.61-1-rpi

Logs

No response

Additional context

No response

Dominant language
C
Stars
13.2k
Forks
5.5k
Avg merge
2d 21h
Merged PRs (30d)
21

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from raspberrypi/linux

All issues in raspberrypi/linux

Similar issues

More C issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.