diff options
author | Jan Janssen <medhefgo@web.de> | 2022-06-05 16:01:40 +0200 |
---|---|---|
committer | Jan Janssen <medhefgo@web.de> | 2023-01-20 20:55:11 +0100 |
commit | edb73ee74239f3a87ab840be2e42f6fbfde51c5e (patch) | |
tree | 81bbf1af4804ca1d5400487235c753617adaa005 /src | |
parent | 4c0a83a434aa707d4fe43f4c5eedcd2269a14ef2 (diff) | |
download | systemd-edb73ee74239f3a87ab840be2e42f6fbfde51c5e.tar.gz |
boot: Drop use of GuidToString
Diffstat (limited to 'src')
-rw-r--r-- | src/boot/efi/disk.c | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/src/boot/efi/disk.c b/src/boot/efi/disk.c index 524662603c..a54628382c 100644 --- a/src/boot/efi/disk.c +++ b/src/boot/efi/disk.c @@ -32,7 +32,27 @@ EFI_STATUS disk_get_part_uuid(EFI_HANDLE *handle, char16_t uuid[static 37]) { if (hd.SignatureType != SIGNATURE_TYPE_GUID) continue; - GuidToString(uuid, (EFI_GUID *) &hd.Signature); + _cleanup_free_ char16_t *tmp = xasprintf( + "%02x%02x%02x%02x-%02x%02x-%02x%02x-%02x%02x-%02x%02x%02x%02x%02x%02x", + hd.Signature[3], + hd.Signature[2], + hd.Signature[1], + hd.Signature[0], + + hd.Signature[5], + hd.Signature[4], + hd.Signature[7], + hd.Signature[6], + + hd.Signature[8], + hd.Signature[9], + hd.Signature[10], + hd.Signature[11], + hd.Signature[12], + hd.Signature[13], + hd.Signature[14], + hd.Signature[15]); + strcpy16(uuid, tmp); return EFI_SUCCESS; } |