Remove unnecessary logging
This commit is contained in:
parent
2f78df693c
commit
4c9f4171e5
22
src/main.rs
22
src/main.rs
@ -75,29 +75,13 @@ fn main() {
|
|||||||
syslog_client.subscribe_to_text();
|
syslog_client.subscribe_to_text();
|
||||||
syslog_client.subscribe_to_binary("devfs".to_string(), vec![0, 1]);
|
syslog_client.subscribe_to_binary("devfs".to_string(), vec![0, 1]);
|
||||||
syslog_client.subscribe_to_binary("tarfs".to_string(), vec![0]);
|
syslog_client.subscribe_to_binary("tarfs".to_string(), vec![0]);
|
||||||
syslog_client
|
|
||||||
.send_text_message("init", "Started syslog")
|
|
||||||
.unwrap();
|
|
||||||
let vfs_pid = run_initrd_proc(&initrd, "bin/vfs");
|
let vfs_pid = run_initrd_proc(&initrd, "bin/vfs");
|
||||||
syslog_client
|
|
||||||
.send_text_message("init", "Started the VFS")
|
|
||||||
.unwrap();
|
|
||||||
run_initrd_proc(&initrd, "bin/devfs");
|
run_initrd_proc(&initrd, "bin/devfs");
|
||||||
syslog_client
|
|
||||||
.send_text_message("init", "Started the devfs")
|
|
||||||
.unwrap();
|
|
||||||
let vfs_client = vfs_rpc::Client::new(vfs_pid);
|
let vfs_client = vfs_rpc::Client::new(vfs_pid);
|
||||||
vfs_client
|
vfs_client
|
||||||
.mount(Path::new("/dummy"), "devfs", Path::new("/dev"))
|
.mount(Path::new("/dummy"), "devfs", Path::new("/dev"))
|
||||||
.unwrap();
|
.unwrap();
|
||||||
syslog_client
|
|
||||||
.send_text_message("init", "Mounted /dev")
|
|
||||||
.unwrap();
|
|
||||||
run_initrd_proc(&initrd, "bin/tarfs");
|
run_initrd_proc(&initrd, "bin/tarfs");
|
||||||
syslog_client
|
|
||||||
.send_text_message("init", "Started the tar archive FS")
|
|
||||||
.unwrap();
|
|
||||||
|
|
||||||
let mut msg_handler = SyslogMessageHandler::new();
|
let mut msg_handler = SyslogMessageHandler::new();
|
||||||
|
|
||||||
loop {
|
loop {
|
||||||
@ -107,9 +91,6 @@ fn main() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
run_initrd_proc(&initrd, "bin/initrd_driver");
|
run_initrd_proc(&initrd, "bin/initrd_driver");
|
||||||
syslog_client
|
|
||||||
.send_text_message("init", "Started the initrd pseudodevice driver")
|
|
||||||
.unwrap();
|
|
||||||
while !msg_handler
|
while !msg_handler
|
||||||
.registered_devices
|
.registered_devices
|
||||||
.iter()
|
.iter()
|
||||||
@ -120,9 +101,6 @@ fn main() {
|
|||||||
vfs_client
|
vfs_client
|
||||||
.mount(Path::new("/dev/initrd"), "tarfs", Path::new("/"))
|
.mount(Path::new("/dev/initrd"), "tarfs", Path::new("/"))
|
||||||
.unwrap();
|
.unwrap();
|
||||||
syslog_client
|
|
||||||
.send_text_message("init", "Mounted the initrd as the root FS")
|
|
||||||
.unwrap();
|
|
||||||
Command::new("/bin/partserv").spawn().unwrap();
|
Command::new("/bin/partserv").spawn().unwrap();
|
||||||
Command::new("/bin/ext2").spawn().unwrap();
|
Command::new("/bin/ext2").spawn().unwrap();
|
||||||
Command::new("/bin/pci").spawn().unwrap();
|
Command::new("/bin/pci").spawn().unwrap();
|
||||||
|
Loading…
Reference in New Issue
Block a user