build(deps): bump the go-deps group with 5 updates
Bumps the go-deps group with 5 updates: | Package | From | To | | --- | --- | --- | | [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) | `1.48.1` | `1.48.13` | | [github.com/gophercloud/gophercloud](https://github.com/gophercloud/gophercloud) | `1.7.0` | `1.8.0` | | [github.com/openshift-online/ocm-sdk-go](https://github.com/openshift-online/ocm-sdk-go) | `0.1.385` | `0.1.388` | | [github.com/osbuild/images](https://github.com/osbuild/images) | `0.18.0` | `0.21.0` | | [google.golang.org/api](https://github.com/googleapis/google-api-go-client) | `0.152.0` | `0.153.0` | Updates `github.com/aws/aws-sdk-go` from 1.48.1 to 1.48.13 - [Release notes](https://github.com/aws/aws-sdk-go/releases) - [Commits](https://github.com/aws/aws-sdk-go/compare/v1.48.1...v1.48.13) Updates `github.com/gophercloud/gophercloud` from 1.7.0 to 1.8.0 - [Release notes](https://github.com/gophercloud/gophercloud/releases) - [Changelog](https://github.com/gophercloud/gophercloud/blob/v1.8.0/CHANGELOG.md) - [Commits](https://github.com/gophercloud/gophercloud/compare/v1.7.0...v1.8.0) Updates `github.com/openshift-online/ocm-sdk-go` from 0.1.385 to 0.1.388 - [Release notes](https://github.com/openshift-online/ocm-sdk-go/releases) - [Changelog](https://github.com/openshift-online/ocm-sdk-go/blob/main/CHANGES.md) - [Commits](https://github.com/openshift-online/ocm-sdk-go/compare/v0.1.385...v0.1.388) Updates `github.com/osbuild/images` from 0.18.0 to 0.21.0 - [Release notes](https://github.com/osbuild/images/releases) - [Commits](https://github.com/osbuild/images/compare/v0.18.0...v0.21.0) Updates `google.golang.org/api` from 0.152.0 to 0.153.0 - [Release notes](https://github.com/googleapis/google-api-go-client/releases) - [Changelog](https://github.com/googleapis/google-api-go-client/blob/main/CHANGES.md) - [Commits](https://github.com/googleapis/google-api-go-client/compare/v0.152.0...v0.153.0) --- updated-dependencies: - dependency-name: github.com/aws/aws-sdk-go dependency-type: direct:production update-type: version-update:semver-patch dependency-group: go-deps - dependency-name: github.com/gophercloud/gophercloud dependency-type: direct:production update-type: version-update:semver-minor dependency-group: go-deps - dependency-name: github.com/openshift-online/ocm-sdk-go dependency-type: direct:production update-type: version-update:semver-patch dependency-group: go-deps - dependency-name: github.com/osbuild/images dependency-type: direct:production update-type: version-update:semver-minor dependency-group: go-deps - dependency-name: google.golang.org/api dependency-type: direct:production update-type: version-update:semver-minor dependency-group: go-deps ... Signed-off-by: dependabot[bot] <support@github.com>
This commit is contained in:
parent
d3dd83aceb
commit
016051a4b8
105 changed files with 7698 additions and 2795 deletions
16
vendor/github.com/osbuild/images/pkg/disk/partition_table.go
generated
vendored
16
vendor/github.com/osbuild/images/pkg/disk/partition_table.go
generated
vendored
|
|
@ -385,7 +385,7 @@ func (pt *PartitionTable) applyCustomization(mountpoints []blueprint.FilesystemC
|
|||
|
||||
// Dynamically calculate and update the start point for each of the existing
|
||||
// partitions. Adjusts the overall size of image to either the supplied
|
||||
// value in `size` or to the sum of all partitions if that is lager.
|
||||
// value in `size` or to the sum of all partitions if that is larger.
|
||||
// Will grow the root partition if there is any empty space.
|
||||
// Returns the updated start point.
|
||||
func (pt *PartitionTable) relayout(size uint64) uint64 {
|
||||
|
|
@ -406,6 +406,8 @@ func (pt *PartitionTable) relayout(size uint64) uint64 {
|
|||
for idx := range pt.Partitions {
|
||||
partition := &pt.Partitions[idx]
|
||||
if len(entityPath(partition, "/")) != 0 {
|
||||
// keep the root partition index to handle after all the other
|
||||
// partitions have been moved and resized
|
||||
rootIdx = idx
|
||||
continue
|
||||
}
|
||||
|
|
@ -586,6 +588,13 @@ func resizeEntityBranch(path []Entity, size uint64) {
|
|||
break
|
||||
}
|
||||
}
|
||||
// If containerSize is 0, it means it doesn't have any direct sizeable
|
||||
// children (e.g., a LUKS container with a VG child). In that case,
|
||||
// set the containerSize to the desired size for the branch before
|
||||
// adding any metadata.
|
||||
if containerSize == 0 {
|
||||
containerSize = size
|
||||
}
|
||||
if vc, ok := element.(VolumeContainer); ok {
|
||||
containerSize += vc.MetadataSize()
|
||||
}
|
||||
|
|
@ -642,14 +651,17 @@ func (pt *PartitionTable) ensureLVM() error {
|
|||
Description: "created via lvm2 and osbuild",
|
||||
}
|
||||
|
||||
// create root logical volume on the new volume group with the same
|
||||
// size and filesystem as the previous root partition
|
||||
_, err := vg.CreateLogicalVolume("root", part.Size, filesystem)
|
||||
if err != nil {
|
||||
panic(fmt.Sprintf("Could not create LV: %v", err))
|
||||
}
|
||||
|
||||
// replace the top-level partition payload with the new volume group
|
||||
part.Payload = vg
|
||||
|
||||
// reset it so it will be grown later
|
||||
// reset the vg partition size - it will be grown later
|
||||
part.Size = 0
|
||||
|
||||
if pt.Type == "gpt" {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue