Keep processing syslog messages after starting phase 2
This commit is contained in:
parent
37895459bc
commit
3dcccb2ba2
11
src/main.rs
11
src/main.rs
@ -136,7 +136,11 @@ fn main() {
|
||||
Command::new("/bin/partserv").spawn().unwrap();
|
||||
Command::new("/bin/ext2").spawn().unwrap();
|
||||
Command::new("/bin/pci").spawn().unwrap();
|
||||
while !msg_handler.registered_devices.iter().any(|x| x=="ahci0d0p1") {
|
||||
while !msg_handler
|
||||
.registered_devices
|
||||
.iter()
|
||||
.any(|x| x == "ahci0d0p1")
|
||||
{
|
||||
msg_handler.process_messages();
|
||||
}
|
||||
|
||||
@ -148,7 +152,6 @@ fn main() {
|
||||
)
|
||||
.unwrap();
|
||||
|
||||
|
||||
while !msg_handler.registered_devices.iter().any(|x| x == "bga0") {
|
||||
msg_handler.process_messages();
|
||||
}
|
||||
@ -174,6 +177,10 @@ fn main() {
|
||||
.unwrap();
|
||||
|
||||
Command::new("/bin/init_phase2").spawn().unwrap();
|
||||
|
||||
loop {
|
||||
msg_handler.process_messages();
|
||||
}
|
||||
}
|
||||
|
||||
fn run_initrd_proc(initrd: &TarArchiveRef, path: &str) -> u64 {
|
||||
|
Loading…
Reference in New Issue
Block a user