fix: update generated .ova manifest for raw disk size

Use constant instead of hardcoded value.

Fixes #2845

Signed-off-by: Andrey Smirnov <smirnov.andrey@gmail.com>
This commit is contained in:
Andrey Smirnov 2020-11-27 17:06:30 +03:00 committed by talos-bot
parent 1c0114b21d
commit d51018a76a

View File

@ -16,6 +16,7 @@ import (
"strings"
"text/template"
"github.com/talos-systems/talos/cmd/installer/pkg"
"github.com/talos-systems/talos/cmd/installer/pkg/qemuimg"
"github.com/talos-systems/talos/pkg/cmd"
)
@ -149,7 +150,7 @@ func CreateOVAFromRAW(name, src, out string) (err error) {
size := f.Size()
ovf, err := renderOVF(name, size, 544)
ovf, err := renderOVF(name, size, pkg.RAWDiskSize)
if err != nil {
return err
}