initrd/src/main.rs

17 lines
337 B
Rust
Raw Normal View History

2024-04-29 10:54:25 +00:00
mod bootstrap;
use std::fs;
use std::io;
fn main() {
println!("Hello, world!");
let cfg_in = fs::OpenOptions::new()
.read(true)
.open("config.yaml")
.unwrap();
let cfg: bootstrap::config::Config = serde_yaml::from_reader(cfg_in).unwrap();
serde_yaml::to_writer(io::stdout(), &cfg).unwrap();
}