Canop/dysk

Errors on macOS

melMass opened this issue · 3 comments

Hi,

very interesting utility, but on macOS I have the following error

$ lfs -a
> Error reading mounts: Could not read dir "/sys/block"
Canop commented

I'm sorry but lfs is only available for linux at the moment. See #24

(closing as dupe but you can comment further, and reopen if you think closing was a mistake)

Canop commented

Maybe the error message should be changed to ask the user to check they're one linux ? But at this point it means they've already lost time installing it...

Suggestions welcome.

rename to lfs_only_work_for_linus but it's may be too much.

Actually, you could do a build.rs check os and error if it's not linux. https://crates.io/crates/os_info