Do not wait for display initialization to mount root drive

This commit is contained in:
pjht 2025-02-26 14:06:19 -06:00
parent 262b6f74a4
commit 73eb1e629d
Signed by: pjht
GPG Key ID: CA239FC6934E6F3A
2 changed files with 15 additions and 11 deletions

8
Cargo.lock generated
View File

@ -232,14 +232,14 @@ checksum = "61697e0a1c7e512e84a621326239844a24d8207b4669b41bc18b32ea5cbf988b"
[[package]]
name = "serde"
version = "1.0.210"
version = "1.0.218"
dependencies = [
"serde_derive",
]
[[package]]
name = "serde_derive"
version = "1.0.210"
version = "1.0.218"
dependencies = [
"proc-macro2",
"quote",
@ -269,9 +269,9 @@ checksum = "a8f112729512f8e442d81f95a8a7ddf2b7c6b8a1a6f509a95864142b30cab2d3"
[[package]]
name = "syn"
version = "2.0.79"
version = "2.0.87"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "89132cd0bf050864e1d38dc3bbc07a0eb8e7530af26344d3d2bbbef83499f590"
checksum = "25aa4ce346d03a6dcd68dd8b4010bcb74e54e62c90c573f394c46eae99aba32d"
dependencies = [
"proc-macro2",
"quote",

View File

@ -138,6 +138,16 @@ fn main() {
msg_handler.process_messages();
}
syslog_client
.send_text_message("init", "Found root drive")
.unwrap();
vfs_client.unmount(Path::new("/")).unwrap();
vfs_client
.mount(Path::new("/dev/ahci0d0p1"), "ext2", Path::new("/"))
.unwrap();
while !msg_handler.registered_devices.iter().any(|x| x == "bga0") {
msg_handler.process_messages();
}
@ -147,13 +157,7 @@ fn main() {
msg_handler.set_output(display);
syslog_client
.send_text_message("init", "Found root drive")
.unwrap();
vfs_client.unmount(Path::new("/")).unwrap();
vfs_client
.mount(Path::new("/dev/ahci0d0p1"), "ext2", Path::new("/"))
.send_text_message("init", "Display initialized")
.unwrap();
syslog_client