mirror of
https://github.com/siderolabs/talos.git
synced 2025-08-17 20:17:03 +02:00
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:
parent
1c0114b21d
commit
d51018a76a
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user