gokrazy / kernel

(Upstream) Linux kernel build for gokrazy
Other
60 stars 29 forks source link

Add bcachefs to config.addendum.txt #584

Closed peebs closed 6 months ago

peebs commented 6 months ago

If there is interest in supporting bcachefs: I got bcachefs working with gokrazy on an rpi4. Might be fun for NAS builds eventually.

I built bcachefs-tools on the pi and ran bcachefs format /dev/sdX. Then modified gokrazy/mount.go to accept bcache fs type for mounting /perm.

I'd add support to gokrazy/mkfs if there is any desire to have that support creating bcachefs as well.

stapelberg commented 6 months ago

Merged as commit https://github.com/gokrazy/kernel/commit/abd0f4a413a6fefe339d6a25b78384868d463913, thanks

stapelberg commented 6 months ago

I'd add support to gokrazy/mkfs if there is any desire to have that support creating bcachefs as well.

That should probably go into a separate package, so that ext4 users don’t need to download the bcachefs mkfs and vice-versa. I can create a gokrazy/mkfs.bcachefs repository if you’d like?

peebs commented 6 months ago

That should probably go into a separate package, so that ext4 users don’t need to download the bcachefs mkfs and vice-versa. I can create a gokrazy/mkfs.bcachefs repository if you’d like?

I like that better. Happy to contribute to gokrazy/mkfs.bcachefs, I'll get bcachefs-tools cross-compiling with docker and submit a pull when I've tested it. Also, I presume its best to have you upload the final binary artifacts to git rather than submitting myself?

stapelberg commented 6 months ago

I like that better. Happy to contribute to gokrazy/mkfs.bcachefs, I'll get bcachefs-tools cross-compiling with docker and submit a pull when I've tested it.

Great! https://github.com/gokrazy/mkfs.bcachefs now exists

Also, I presume its best to have you upload the final binary artifacts to git rather than submitting myself?

Yeah, that works for me. If you include artifacts, I would re-build them anyway just to check :)