We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
\EFI\hermit
1 parent 362e352 commit 630f145Copy full SHA for 630f145
1 file changed
src/os/uefi/mod.rs
@@ -135,11 +135,14 @@ impl Esp {
135
}
136
137
pub fn read_app(&mut self) -> Vec<u8> {
138
- self.read_app_at(cstr16!(r"\EFI\BOOT\hermit-app")).unwrap()
+ self.read_app_at(cstr16!(r"\EFI\hermit\hermit-app"))
139
+ .or_else(|| self.read_app_at(cstr16!(r"\EFI\BOOT\hermit-app")))
140
+ .unwrap()
141
142
143
pub fn read_bootargs(&mut self) -> Option<String> {
- self.read_bootargs_at(cstr16!(r"\EFI\BOOT\hermit-bootargs"))
144
+ self.read_bootargs_at(cstr16!(r"\EFI\hermit\hermit-bootargs"))
145
+ .or_else(|| self.read_bootargs_at(cstr16!(r"\EFI\BOOT\hermit-bootargs")))
146
147
148
fn read_app_at<P: AsRef<Path>>(&mut self, path: P) -> Option<Vec<u8>> {
0 commit comments