Skip to content

Conversation

@jackwasey
Copy link

As of September 2025, CachyOS default install with a single-drive bcachefs filesystem for root works. However, with more than one disk in the bcachefs filesystem, sdboot-manage uses the colon-delimited list of devices for root= in the kernel command line, which fails. This patch will find the bcachefs filesystem UUID, and use that for root= instead.

@ptr1337 ptr1337 requested review from 1Naim, Copilot, ptr1337 and ventureoo and removed request for ventureoo September 29, 2025 19:39
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds support for using UUID-based root filesystem specification in kernel command lines for multi-disk bcachefs filesystems. Currently, sdboot-manage fails when bcachefs spans multiple devices because it uses a colon-delimited device list that the kernel cannot parse.

  • Adds bcachefs case handling to extract filesystem UUID from the first member device
  • Implements validation to confirm the UUID matches the correct bcachefs filesystem
  • Updates kernel command line to use root=UUID=<uuid> format instead of device paths

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@jackwasey jackwasey force-pushed the bcachefs-multi-device-root-uuid branch from 4baa581 to b733e92 Compare October 5, 2025 09:11
As of September 2025, CachyOS default install with a single-drive
bcachefs filesystem for root works. However, with more than one disk in
the bcachefs filesystem, sdboot-manage uses the colon-delimited list of
devices for root= in the kernel command line, which fails. This patch
will find the bcachefs filesystem UUID, and use that for root= instead.

- Updated to avoid implicit use of first array members.
- Corrected variable name for validation step.
@jackwasey jackwasey force-pushed the bcachefs-multi-device-root-uuid branch from b733e92 to d2478e0 Compare January 18, 2026 11:47
ptr1337 and others added 19 commits February 3, 2026 08:47
Signed-off-by: Peter Jung <admin@ptr1337.dev>
The Yandex Mirror is heavily out of date (more then one day) and therefor lets disable it till they use a proper syncing mechanism
Signed-off-by: Piotr Gorski <lucjan.lucjanov@gmail.com>
Signed-off-by: Eric Naim <dnaim@cachyos.org>
Signed-off-by: Peter Jung <admin@ptr1337.dev>
Signed-off-by: Eric Naim <dnaim@cachyos.org>
Signed-off-by: Piotr Gorski <lucjan.lucjanov@gmail.com>
Signed-off-by: Peter Jung <admin@ptr1337.dev>
Signed-off-by: Peter Jung <admin@ptr1337.dev>
Signed-off-by: Piotr Gorski <lucjan.lucjanov@gmail.com>
Signed-off-by: Piotr Gorski <lucjan.lucjanov@gmail.com>
Signed-off-by: Piotr Gorski <lucjan.lucjanov@gmail.com>
Signed-off-by: Piotr Gorski <lucjan.lucjanov@gmail.com>
Signed-off-by: Peter Jung <admin@ptr1337.dev>
Signed-off-by: Peter Jung <admin@ptr1337.dev>
Signed-off-by: Peter Jung <admin@ptr1337.dev>
ptr1337 and others added 30 commits February 3, 2026 08:47
Signed-off-by: Peter Jung <admin@ptr1337.dev>
Signed-off-by: Peter Jung <admin@ptr1337.dev>
Signed-off-by: Peter Jung <admin@ptr1337.dev>
Signed-off-by: Peter Jung <admin@ptr1337.dev>
Signed-off-by: Piotr Gorski <lucjan.lucjanov@gmail.com>
Signed-off-by: Piotr Gorski <lucjan.lucjanov@gmail.com>
Signed-off-by: Piotr Gorski <lucjan.lucjanov@gmail.com>
Signed-off-by: Peter Jung <admin@ptr1337.dev>
Signed-off-by: Piotr Gorski <lucjan.lucjanov@gmail.com>
Signed-off-by: Piotr Gorski <lucjan.lucjanov@gmail.com>
Signed-off-by: Eric Naim <dnaim@cachyos.org>
Signed-off-by: Peter Jung <admin@ptr1337.dev>
Signed-off-by: Peter Jung <admin@ptr1337.dev>
Disabled due errors when installing "427"
Signed-off-by: Peter Jung <admin@ptr1337.dev>
Signed-off-by: Peter Jung <admin@ptr1337.dev>
Signed-off-by: Peter Jung <admin@ptr1337.dev>
Signed-off-by: Peter Jung <admin@ptr1337.dev>
Signed-off-by: Peter Jung <admin@ptr1337.dev>
Signed-off-by: Piotr Gorski <lucjan.lucjanov@gmail.com>
Signed-off-by: Eric Naim <dnaim@cachyos.org>
Signed-off-by: Peter Jung <admin@ptr1337.dev>
Signed-off-by: Eric Naim <dnaim@cachyos.org>
Signed-off-by: Peter Jung <admin@ptr1337.dev>
Signed-off-by: Piotr Gorski <lucjan.lucjanov@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

10 participants