@@ -89,9 +89,26 @@ pub(crate) const EFIVARFS: &str = "/sys/firmware/efi/efivars";
8989pub ( crate ) const ARCH_USES_EFI : bool = cfg ! ( any( target_arch = "x86_64" , target_arch = "aarch64" ) ) ;
9090#[ cfg( any( feature = "composefs-backend" , feature = "install-to-disk" ) ) ]
9191pub ( crate ) const ESP_GUID : & str = "C12A7328-F81F-11D2-BA4B-00A0C93EC93B" ;
92+
9293#[ 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+ }
95112
96113const DEFAULT_REPO_CONFIG : & [ ( & str , & str ) ] = & [
97114 // Default to avoiding grub2-mkconfig etc.
0 commit comments