Skip to content

Commit

Permalink
Merge pull request #246 from tobhe/secgpt
Browse files Browse the repository at this point in the history
gpt: point alternate PartitionEntryLBA to alternate GPT table
  • Loading branch information
deitch authored Aug 13, 2024
2 parents e559b1c + f9c45ae commit e27b493
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion partition/gpt/table.go
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ func (t *Table) toGPTBytes(primary bool) ([]byte, error) {
copy(b[56:72], bytesToUUIDBytes(guid[0:16]))

// starting LBA of array of partition entries
binary.LittleEndian.PutUint64(b[72:80], t.partitionArraySector(true))
binary.LittleEndian.PutUint64(b[72:80], t.partitionArraySector(primary))

// how many entries?
binary.LittleEndian.PutUint32(b[80:84], uint32(t.partitionArraySize))
Expand Down

0 comments on commit e27b493

Please sign in to comment.