Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ func ExampleCreate_gpt() {
ProtectiveMBR: true,
Partitions: []*gpt.Partition{
{
Index: 1,
Start: 1 * 1024 * 1024 / 512,
Size: 10 * 1024 * 1024,
Type: gpt.MBRPartitionScheme,
Expand Down
2 changes: 1 addition & 1 deletion examples/efi_create.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func CreateEfi(diskImg string) {
// create a partition table
table := &gpt.Table{
Partitions: []*gpt.Partition{
{Start: uint64(partitionStart), End: uint64(partitionEnd), Type: gpt.EFISystemPartition, Name: "EFI System"},
{Index: 1, Start: uint64(partitionStart), End: uint64(partitionEnd), Type: gpt.EFISystemPartition, Name: "EFI System"},
},
}
// apply the partition table
Expand Down
Loading