@@ -89,9 +89,26 @@ pub(crate) const EFIVARFS: &str = "/sys/firmware/efi/efivars";
89
89
pub ( crate ) const ARCH_USES_EFI : bool = cfg ! ( any( target_arch = "x86_64" , target_arch = "aarch64" ) ) ;
90
90
#[ cfg( any( feature = "composefs-backend" , feature = "install-to-disk" ) ) ]
91
91
pub ( crate ) const ESP_GUID : & str = "C12A7328-F81F-11D2-BA4B-00A0C93EC93B" ;
92
+
92
93
#[ cfg( any( feature = "composefs-backend" , feature = "install-to-disk" ) ) ]
93
- // TODO (Johan-Liebert1): We'd want this for all archs
94
- pub ( crate ) const DPS_UUID : & str = "4f68bce3-e8cd-4db1-96e7-fbcaf984b709" ;
94
+ // Architecture-specific DPS UUIDs for install-to-disk flow
95
+ // See: https://uapi-group.org/specifications/specs/discoverable_partitions_specification/#defined-partition-type-uuids
96
+ pub ( crate ) mod dps_uuid {
97
+ #[ cfg( target_arch = "x86_64" ) ]
98
+ pub ( crate ) const DPS_UUID : & str = "4f68bce3-e8cd-4db1-96e7-fbcaf984b709" ;
99
+
100
+ #[ cfg( target_arch = "aarch64" ) ]
101
+ pub ( crate ) const DPS_UUID : & str = "b921b045-1df0-41c3-af44-4c6f280d3fae" ;
102
+
103
+ #[ cfg( target_arch = "s390x" ) ]
104
+ pub ( crate ) const DPS_UUID : & str = "5eead9a9-fe09-4a1e-a1d7-520d00531306" ;
105
+
106
+ #[ cfg( all( target_arch = "powerpc64" , target_endian = "big" ) ) ]
107
+ pub ( crate ) const DPS_UUID : & str = "912ade1d-c142-4c63-8823-4435540c14a2" ;
108
+
109
+ #[ cfg( all( target_arch = "powerpc64" , target_endian = "little" ) ) ]
110
+ pub ( crate ) const DPS_UUID : & str = "c31c45e6-3f39-412e-80fb-4809c4980599" ;
111
+ }
95
112
96
113
const DEFAULT_REPO_CONFIG : & [ ( & str , & str ) ] = & [
97
114
// Default to avoiding grub2-mkconfig etc.
0 commit comments