-
Notifications
You must be signed in to change notification settings - Fork 68
bcachefs: use UUID for rootfs in kernel cmd line #862
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
bcachefs: use UUID for rootfs in kernel cmd line #862
Conversation
There was a problem hiding this 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.
4baa581 to
b733e92
Compare
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.
b733e92 to
d2478e0
Compare
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>
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>
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.