Keep processing syslog messages after starting phase 2

This commit is contained in:
pjht 2024-09-10 21:06:31 -05:00
parent 37895459bc
commit 3dcccb2ba2
Signed by: pjht
GPG Key ID: 7B5F6AFBEC7EE78E

View File

@ -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 {