disk: define the default sector size constant

Move the `sectorSize` constant, defined in `customizations.go`
to `disk.go` as `DefaultSectorSize`. Rename current usages of
the former to the latter.
This commit is contained in:
Christian Kellner 2021-12-20 12:03:37 +01:00 committed by Tom Gundersen
parent 199463547e
commit 115c864f93
2 changed files with 7 additions and 3 deletions

View file

@ -14,6 +14,11 @@ import (
"github.com/osbuild/osbuild-composer/internal/osbuild2"
)
const (
// Default sector size in bytes
DefaultSectorSize = 512
)
type PartitionTable struct {
Size uint64 // Size of the disk (in bytes).
UUID string // Unique identifier of the partition table (GPT only).