Skip to content

Commit

Permalink
add fstype for mkpart command
Browse files Browse the repository at this point in the history
  • Loading branch information
Omarabdul3ziz committed Dec 22, 2024
1 parent 445083f commit e37beeb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/storage/filesystem/device.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ func (d *DeviceInfo) GetUnallocatedSpaces(ctx context.Context) ([]DiskSpace, err

func (d *DeviceInfo) AllocateEmptySpace(ctx context.Context, space DiskSpace) error {
args := []string{
d.Path, "mkpart", "primary", space.Start, space.End,
d.Path, "mkpart", "primary", string(BtrfsFSType), space.Start, space.End,
}

output, err := exec.CommandContext(ctx, "parted", args...).CombinedOutput()
Expand Down

0 comments on commit e37beeb

Please sign in to comment.