fixup! Implement flag file for optimistic cold boot state

This commit is contained in:
Hector Martin 2023-10-13 13:35:31 +09:00
parent f382ce7a5c
commit c43b8b752b

View file

@ -45,7 +45,7 @@ struct Options {
} }
fn get_machine() -> String { fn get_machine() -> String {
read_to_string("/proc/device-tree/compatible") fs::read_to_string("/proc/device-tree/compatible")
.expect("Could not read device tree compatible") .expect("Could not read device tree compatible")
.strip_prefix("apple,") .strip_prefix("apple,")
.expect("Unexpected compatible format") .expect("Unexpected compatible format")