serpent-os / tools

The home of moss (system state manager) and boulder (moss format build tool)
https://serpentos.com
132 stars 12 forks source link

moss: Make `moss state prune` show progress bar + recoverable/recovered disk space at start/end of run #342

Open ermo opened 1 month ago

ermo commented 1 month ago

I was just doing a moss state prune of more than a hundred states. It took a couple of minutes in total, with no visible progress, which sort of made it look like the operation had hung (it hadn't of course).

It would be really helpful if moss could attempt to tell me up up front how much space it expects a prune operation to take and then give a final tally after the fact as well.

It looks like each state is in the range of tens to hundreds of megabytes, s I guess it would make sense to output the size in mebibytes?