go.mod: update osbuild/images to v0.74.0
This commit is contained in:
parent
3789ff4ce8
commit
c9972f7da8
327 changed files with 8341 additions and 12785 deletions
13
vendor/github.com/osbuild/images/pkg/disk/partition.go
generated
vendored
13
vendor/github.com/osbuild/images/pkg/disk/partition.go
generated
vendored
|
|
@ -59,6 +59,19 @@ func (p *Partition) GetChild(n uint) Entity {
|
|||
return p.Payload
|
||||
}
|
||||
|
||||
// fitTo resizes a partition to be either the given the size or the size of its
|
||||
// payload if that is larger. The payload can be larger if it is a container
|
||||
// with sized children.
|
||||
func (p *Partition) fitTo(size uint64) {
|
||||
payload, isVC := p.Payload.(VolumeContainer)
|
||||
if isVC {
|
||||
if payloadMinSize := payload.minSize(size); payloadMinSize > size {
|
||||
size = payloadMinSize
|
||||
}
|
||||
}
|
||||
p.Size = size
|
||||
}
|
||||
|
||||
func (p *Partition) GetSize() uint64 {
|
||||
return p.Size
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue