Open dankamongmen opened 3 years ago
note that it seems we're only miscalculating the main crc, not the partition crc two lines later. hrmmm.
s390x:
SIZE: 92 CRC: f588367b RES: 00000000
GUID: ^����0F�=Tn��
AME: EFI PART
(00) 45464920 50415254
(08) 00010000 0000005c
(16) f588367b 00000000
(24) 00000000 00000001
(32) 00000000 003fffef
(40) 00000000 00000022
(48) 00000000 003fffce
(56) 5e8690ef d0300346
(64) 993d546e b0e71b0d
(72) 00000000 00000002
(80) 00000080 00000080
(88) ab54d286 ffffffff
x86_64:
SIZE: 92 CRC: 7793a7a6 RES: 00000000
LBA: 0000000000000001 BLBA: 00000000003fffef
GUID: ^����0F�=Tn��
AME: EFI PART
(00) 20494645 54524150
(08) 00010000 0000005c
(16) 7793a7a6 00000000
(24) 00000001 00000000
(32) 003fffef 00000000
(40) 00000022 00000000
(48) 003fffce 00000000
(56) ef90865e 460330d0
(64) 6e543d99 0d1be7b0
(72) 00000002 00000000
(80) 00000080 00000080
(88) ab54d286 00007f00
OK, crc32()
is most certainly endian-sensitive at the word level, no matter what dumbasses say on the internet. argh.
this comes from https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/15043#note_128242, alpine's 1.2.22