Update osbuild/images to v0.77.0
Signed-off-by: Tomáš Hozza <thozza@redhat.com>
This commit is contained in:
parent
725c5cdb25
commit
a9923febd8
40 changed files with 252 additions and 169 deletions
3
vendor/github.com/osbuild/images/pkg/disk/disk.go
generated
vendored
3
vendor/github.com/osbuild/images/pkg/disk/disk.go
generated
vendored
|
|
@ -24,8 +24,9 @@ import (
|
|||
"reflect"
|
||||
"strings"
|
||||
|
||||
"slices"
|
||||
|
||||
"github.com/google/uuid"
|
||||
"golang.org/x/exp/slices"
|
||||
)
|
||||
|
||||
const (
|
||||
|
|
|
|||
6
vendor/github.com/osbuild/images/pkg/disk/partition_table.go
generated
vendored
6
vendor/github.com/osbuild/images/pkg/disk/partition_table.go
generated
vendored
|
|
@ -37,7 +37,7 @@ const (
|
|||
RawPartitioningMode PartitioningMode = "raw"
|
||||
|
||||
// BtrfsPartitioningMode creates a btrfs layout.
|
||||
BtfrsPartitioningMode PartitioningMode = "btrfs"
|
||||
BtrfsPartitioningMode PartitioningMode = "btrfs"
|
||||
|
||||
// DefaultPartitioningMode is AutoLVMPartitioningMode and is the empty state
|
||||
DefaultPartitioningMode PartitioningMode = ""
|
||||
|
|
@ -100,7 +100,7 @@ const (
|
|||
func NewPartitionTable(basePT *PartitionTable, mountpoints []blueprint.FilesystemCustomization, imageSize uint64, mode PartitioningMode, requiredSizes map[string]uint64, rng *rand.Rand) (*PartitionTable, error) {
|
||||
newPT := basePT.Clone().(*PartitionTable)
|
||||
|
||||
if basePT.features().LVM && (mode == RawPartitioningMode || mode == BtfrsPartitioningMode) {
|
||||
if basePT.features().LVM && (mode == RawPartitioningMode || mode == BtrfsPartitioningMode) {
|
||||
return nil, fmt.Errorf("%s partitioning mode set for a base partition table with LVM, this is unsupported", mode)
|
||||
}
|
||||
|
||||
|
|
@ -115,7 +115,7 @@ func NewPartitionTable(basePT *PartitionTable, mountpoints []blueprint.Filesyste
|
|||
ensureLVM = false
|
||||
case DefaultPartitioningMode, AutoLVMPartitioningMode:
|
||||
ensureLVM = len(newMountpoints) > 0
|
||||
case BtfrsPartitioningMode:
|
||||
case BtrfsPartitioningMode:
|
||||
ensureBtrfs = true
|
||||
default:
|
||||
return nil, fmt.Errorf("unsupported partitioning mode %q", mode)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue