Add protected mode sub-crate for Linux boot setup

This commit is contained in:
Zhang Junyang
2023-10-06 22:08:20 +08:00
committed by Tate, Hongliang Tian
parent 7d5295ab25
commit d0c84e0b6f
20 changed files with 138 additions and 66 deletions

View File

@ -199,7 +199,7 @@ fn calculate_priority(
}
fn metadata() -> json::JsonValue {
let mut cmd = Command::new(env!("CARGO"));
let mut cmd = Command::new(std::env::var("CARGO").unwrap());
cmd.arg("metadata");
cmd.arg("--format-version").arg("1");
let output = cmd.output().unwrap();