ifd3f / caligula

A user-friendly, lightweight TUI for disk imaging
GNU General Public License v3.0
317 stars 5 forks source link

Support running on BSDs #3

Open ifd3f opened 1 year ago

EliphazBouye commented 4 months ago

Can I work on this one ? @ifd3f

ifd3f commented 4 months ago

@SophonieBouye Yes, that would be cool!

If you're able to get the compilation, USB listing, sudo/doas escalation, and burn working, that would be really neat. That's not enough to close the issue, because I'll likely want to set up automated CI tests and builds, but this would get us pretty far in terms of that.

If you'd like some code pointers, the cross-platform parts you will likely want to modify are in device.rs and writer_process/xplat.rs.

105 might block you on the disk writing part -- I'm not exactly sure how BSDs handle writes to block devices, but if they require that you write a multiple of the block size like in MacOS, you might get stuck on that. I'm currently writing a fix for it, so it might not end up blocking you.