Definitely not where I would want to end up, but this seemed like a good place to do the pr/get a review. If the organization makes sense, I (with some guidance) or someone else can attempt to continue with network, fileio, and power.
Steps taken:
Moved all the init code into the init module (specifically SystemRuntime)
Attempted to architect the code in a more foolproof way (e.g., non-pid1 process cannot call pid1 init code)
Divided related code into smaller mods
Slimed down init's top level mod, and expose the minimum necessary
Reduced the reliance on anyhow in favor of custom errors using thiserror
Definitely not where I would want to end up, but this seemed like a good place to do the pr/get a review. If the organization makes sense, I (with some guidance) or someone else can attempt to continue with network, fileio, and power.
Steps taken: