Skip to content

Commit

Permalink
disk,otk: use disk.DosLVMTypeID constant
Browse files Browse the repository at this point in the history
  • Loading branch information
achilleas-k authored and supakeen committed Dec 11, 2024
1 parent 544bc43 commit b620926
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/otk/osbuild-gen-partition-table/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,7 @@ func TestGenPartitionTableCustomizationExtraMp(t *testing.T) {
{
Start: 2148532224,
Size: 13744734208,
Type: "8e",
Type: disk.DosLVMTypeID,
Payload: &disk.LVMVolumeGroup{
Name: "rootvg",
Description: "created via lvm2 and osbuild",
Expand Down
2 changes: 1 addition & 1 deletion pkg/disk/partition_table.go
Original file line number Diff line number Diff line change
Expand Up @@ -755,7 +755,7 @@ func (pt *PartitionTable) ensureLVM() error {
if pt.Type == PT_GPT {
part.Type = LVMPartitionGUID
} else {
part.Type = "8e"
part.Type = DosLVMTypeID
}

} else {
Expand Down

0 comments on commit b620926

Please sign in to comment.