Skip to content
Snippets Groups Projects
Verified Commit 8d5cc843 authored by Jeremy Soller's avatar Jeremy Soller
Browse files

Fix EFI disk error if media is not present

parent 785c955b
No related branches found
No related tags found
No related merge requests found
......@@ -92,6 +92,10 @@ impl Os<
fn filesystem(&self, password_opt: Option<&[u8]>) -> syscall::Result<redoxfs::FileSystem<DiskEfi>> {
for block_io in DiskEfi::all().into_iter() {
if ! block_io.0.Media.MediaPresent {
continue;
}
if block_io.0.Media.LogicalPartition {
match redoxfs::FileSystem::open(block_io, password_opt, Some(0), false) {
Ok(ok) => return Ok(ok),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment