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 <mateusz.urbanek@siderolabs.com>
(cherry picked from commit e2df0f6ce8c47b0dc3e93bf257afb8a1ae9243fb)
This commit is contained in:
Mateusz Urbanek 2026-03-31 09:03:34 +02:00 committed by Andrey Smirnov
parent f0c5cb517f
commit 38d391e9dc
No known key found for this signature in database
GPG Key ID: 322C6F63F594CE7C

View File

@ -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(),