Update osbuild/images to v0.40.0
In addition, simplify the SPEC file to not have to update the minimum required osbuild version gazillion times, but just once. Update the minimum required osbuild version to v109, due to changes in grub2 stages required by the new osbuild/images version. Update osbild SHA in Schutzfile to v109. Signed-off-by: Tomáš Hozza <thozza@redhat.com>
This commit is contained in:
parent
c138ea6939
commit
2f087f1a6c
190 changed files with 57031 additions and 52810 deletions
17
vendor/github.com/osbuild/images/pkg/disk/partition_table.go
generated
vendored
17
vendor/github.com/osbuild/images/pkg/disk/partition_table.go
generated
vendored
|
|
@ -750,3 +750,20 @@ func (pt *PartitionTable) GetBuildPackages() []string {
|
|||
|
||||
return packages
|
||||
}
|
||||
|
||||
// GetMountpointSize takes a mountpoint and returns the size of the entity this
|
||||
// mountpoint belongs to.
|
||||
func (pt *PartitionTable) GetMountpointSize(mountpoint string) (uint64, error) {
|
||||
path := entityPath(pt, mountpoint)
|
||||
if path == nil {
|
||||
return 0, fmt.Errorf("cannot find mountpoint %s", mountpoint)
|
||||
}
|
||||
|
||||
for _, ent := range path {
|
||||
if sizeable, ok := ent.(Sizeable); ok {
|
||||
return sizeable.GetSize(), nil
|
||||
}
|
||||
}
|
||||
|
||||
panic(fmt.Sprintf("no sizeable of the entity path for mountpoint %s, this is a programming error", mountpoint))
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue