From 38d391e9dc0201be526cbcffec3350cb07e6956d Mon Sep 17 00:00:00 2001 From: Mateusz Urbanek Date: Tue, 31 Mar 2026 09:03:34 +0200 Subject: [PATCH] fix: always grow disks Previously, there was no way to grow virtual disks attached to VMs, even though resizing them was possible (e.g. through hypervisor changing the size of disk). This forces the UserVolume of type=disk to always grow to full size of the disk. Signed-off-by: Mateusz Urbanek (cherry picked from commit e2df0f6ce8c47b0dc3e93bf257afb8a1ae9243fb) --- .../block/internal/volumes/volumeconfig/user_volumes.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/app/machined/pkg/controllers/block/internal/volumes/volumeconfig/user_volumes.go b/internal/app/machined/pkg/controllers/block/internal/volumes/volumeconfig/user_volumes.go index c2a20e8c7..1cb1b066b 100644 --- a/internal/app/machined/pkg/controllers/block/internal/volumes/volumeconfig/user_volumes.go +++ b/internal/app/machined/pkg/controllers/block/internal/volumes/volumeconfig/user_volumes.go @@ -75,6 +75,7 @@ func UserVolumeTransformer(c configconfig.Config) ([]VolumeResource, error) { }, PartitionSpec: block.PartitionSpec{ TypeUUID: partition.LinuxFilesystemData, + Grow: true, }, FilesystemSpec: block.FilesystemSpec{ Type: userVolumeConfig.Filesystem().Type(),