We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ef89200 commit e650233Copy full SHA for e650233
src/image_tools/mod.rs
@@ -27,9 +27,10 @@ pub fn locate_boot_partition(disk: PathBuf) -> Result<partition::Partition,Box<d
27
let partitions = partition::read_partitions(disk.clone())?;
28
for (_, partition) in partitions.iter().enumerate() {
29
let sector_size = 512;
30
- if partition.p_type != 12 {
31
- // Ignore non-fat partitions
32
- continue;
+ // Ignore non-efi or non-fat partitions
+ match partition.p_type {
+ 0x0b | 0xef => {},
33
+ _ => continue,
34
}
35
let disk_handle = File::open(disk.clone())?;
36
let mut buf_rdr = BufStream::new(disk_handle);
0 commit comments