File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,9 @@ use crate::task::Task;
9
9
pub ( crate ) const EFI_DIR : & str = "efi" ;
10
10
pub ( crate ) const PREPBOOT_GUID : & str = "9E1A2D38-C612-4316-AA26-8B49521E5A8B" ;
11
11
pub ( crate ) const PREPBOOT_LABEL : & str = "PowerPC-PReP-boot" ;
12
+ #[ cfg( target_arch = "powerpc64" ) ]
13
+ /// We make a best-effort to support MBR partitioning too.
14
+ pub ( crate ) const PREPBOOT_MBR_TYPE : & str = "41" ;
12
15
13
16
/// Find the device to pass to bootupd. Only on powerpc64 right now
14
17
/// we explicitly find one with a specific label.
@@ -20,7 +23,7 @@ fn get_bootupd_device(device: &PartitionTable) -> Result<Utf8PathBuf> {
20
23
return device
21
24
. partitions
22
25
. iter ( )
23
- . find ( |p| p. parttype . as_str ( ) == PREPBOOT_GUID )
26
+ . find ( |p| matches ! ( p. parttype. as_str( ) , PREPBOOT_GUID | PREPBOOT_MBR_TYPE ) )
24
27
. ok_or_else ( || {
25
28
anyhow:: anyhow!( "Failed to find PReP partition with GUID {PREPBOOT_GUID}" )
26
29
} )
You can’t perform that action at this time.
0 commit comments