site  contact  subhomenews

bcachefs utility crash in initrd

June 02, 2025 — BarryK

The previous post is plans for moving ahead with QV:

...thinking of replacing btrfs with bcachefs.

The bcachefs utility project is here:

https://github.com/koverstreet/bcachefs-tools

Man page:

https://manpages.debian.org/experimental/bcachefs-tools/bcachefs.8.en.html

Unfortunately, a small part of it is written in rust. It was originally written in C, but the developer, Kent, is adding to it in rust code. I say unfortunate, because it bloats the final executable, and makes it (I think) very difficult to create a statically-linked binary -- all the binary executables in the QV initrd are statically-linked.

Anyway, I put the 'bcachefs' utility from the 'bcachefs-tools' package, from Void Linux repository, as well as all required shared libraries, into the initrd.

Compiled the 6.15 kernel, with the bcachefs driver builtin. Put that into the QV USB drive, along with modified 'initrd'.

Booted, and chose to dropout to a shell in the initrd, so as to test the 'bcachefs' utility. Crashes. Have reported to github:

https://github.com/koverstreet/bcachefs-tools/issues/386

So, hoping that this can be resolved.   

Tags: quirky