Fixed mounting of /dev /sys /proc what is needed for other stuff to work.

This commit is contained in:
2026-07-20 23:21:48 +02:00
parent b90544bac5
commit 1bf3ef0e15
4 changed files with 120 additions and 58 deletions
+4 -7
View File
@@ -123,16 +123,13 @@ impl NyanitTUI<'_> {
})
}
// pub fn bzz_unwrap<T,E>(&mut self, val: Result<T,E>) -> T {
// match val {
// Ok(v) => v,
// }
// }
/// runs the application's main loop until the user quits
pub fn run(&mut self) -> io::Result<()> {
self.state = match init_stage() {
Ok(st) => st,
Err(ex) => NyanitState::Error(format!("Error while trying to bzzz-pss things: {}", ex)),
Err(ex) => {
NyanitState::Error(format!("Error while trying to bzzz-pss things:\n{}", ex))
},
};
// if drive unencrypted and there is no root snapshots finish boot
@@ -340,7 +337,7 @@ impl NyanitTUI<'_> {
fn main() -> ExitCode {
nyan_system::set_env_vars_unsafe();
// nyan_system::set_env_vars_unsafe();
let mut app = NyanitTUI::new().unwrap();
app.run().unwrap();
// Terminal restores automatically when `stdout` (RawTerminal) is dropped