diff --git a/pkg/crc/machine/disks.go b/pkg/crc/machine/disks.go index e78c110740..c357a7e90f 100644 --- a/pkg/crc/machine/disks.go +++ b/pkg/crc/machine/disks.go @@ -63,7 +63,7 @@ func ocpGetPVShiftSizeGiB(diskSize int, pvSize int) int { return diskSize - constants.DefaultDiskSize } -func growRootFileSystem(ctx context.Context, startConfig types.StartConfig, vm *virtualMachine, sshRunner *crcssh.Runner) error { +func growFileSystem(ctx context.Context, startConfig types.StartConfig, vm *virtualMachine, sshRunner *crcssh.Runner) error { if startConfig.Preset == crcPreset.OpenShift { sizeToMove := ocpGetPVShiftSizeGiB(startConfig.DiskSize, startConfig.PersistentVolumeSize) if err := moveTopolvmPartition(ctx, sizeToMove, vm, sshRunner); err != nil { diff --git a/pkg/crc/machine/start.go b/pkg/crc/machine/start.go index a5ae651f51..955e55dfda 100644 --- a/pkg/crc/machine/start.go +++ b/pkg/crc/machine/start.go @@ -346,7 +346,7 @@ func (client *client) Start(ctx context.Context, startConfig types.StartConfig) } // Trigger disk resize, this will be a no-op if no disk size change is needed - if err := growRootFileSystem(ctx, startConfig, vm, sshRunner); err != nil { + if err := growFileSystem(ctx, startConfig, vm, sshRunner); err != nil { return nil, errors.Wrap(err, "Error updating filesystem size") }