Skip to content
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

Possible bootstrap for blkid #197

Open
ikeycode opened this issue Jan 19, 2025 · 6 comments
Open

Possible bootstrap for blkid #197

ikeycode opened this issue Jan 19, 2025 · 6 comments

Comments

@ikeycode
Copy link

ikeycode commented Jan 19, 2025

For Serpent OS we couldn't use libblkid due to static linking and MPL-2.0 project, so we created some of our own disk functionality in the blsforme project.

As our needs have grown we've split the superblock pieces out of that project into https://github.com/serpent-os/disks-rs.
Right now its simply reading various filesystem superblocks directly from buffers/files (ie /dev/nvme*) but I'm also
working towards some disk enumeration / topology APIs as a requirement for our installer, Lichen.

If any of these pieces are useful for you or if you guys want to collaborate on disks-rs (or other projects) please do let us know.
Sidenote: We do use your coreutils by default in Serpent OS =)

@sylvestre
Copy link
Contributor

hello
is that a new tool or a replacement of one?

@ikeycode
Copy link
Author

Hm possibly theres some confusion here. Ok so blsforme is a project for boot management in Serpent OS which is mentioned here because its where we found ourselves down the rabbit hole of not being able to use libblkid for tooling.

The newly formed disks-rs project is where we're building all of our superblock and disk topology and partitioning support in reusable crates. At some point, they'd be far enough along to support building replacements for libblkid, libmount, libuuid, etc, which is a necessity for building a drop-in-replacement of util-linux.

Arguably the disk related functionality in util-linux is the most complex, and rather than seeing repeating/competing works, we're offering to collab on a backend part in disks-rs. If libblkd etc is deemed out of scope for this project, then we'll take it on in time in the disks-rs project as a CAPI build.

@sylvestre
Copy link
Contributor

oh, sure
how do you see that happening ?

@ikeycode
Copy link
Author

Whatever way you wanna do it. If you like we could define an mvp and then move the repo into a shared zone rather than it being "owned" by Serpent OS?

@sylvestre
Copy link
Contributor

Sure, are you at fosdem this week end ? :)

@ikeycode
Copy link
Author

ikeycode commented Feb 1, 2025

I wish! Unemployed hacker, haven't got the funds. Maybe some day. ^^

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

No branches or pull requests

2 participants