fix: xfce session crash, 10gb disk with resize on boot

This commit is contained in:
Harivansh Rathi 2026-04-10 15:07:38 +00:00
parent eb9d2a76df
commit 99ad3b4cf8
2 changed files with 4 additions and 0 deletions

View file

@ -69,6 +69,9 @@ func (d *Daemon) CreateMachine(ctx context.Context, req contracthost.CreateMachi
if err := cloneDiskFile(artifact.RootFSPath, systemVolumePath, d.config.DiskCloneMode); err != nil {
return nil, fmt.Errorf("clone rootfs for %q: %w", req.MachineID, err)
}
if err := os.Truncate(systemVolumePath, defaultGuestDiskSizeBytes); err != nil {
return nil, fmt.Errorf("expand system volume for %q: %w", req.MachineID, err)
}
removeSystemVolumeOnFailure := true
defer func() {
if !removeSystemVolumeOnFailure {