distro: define PartitionType method on ImageType
This is needed so that we can do different things depending on the given layout; this will be used in tests for now only. Only GPT allows for arbitrary number of partitions and once we assert this in code we will need to adjust the tests accordingly. NB: This method might be removed again in the future, once generic LVM support is added everywhere and the ability to differentiate between MBR and GPT layouts is not needed anymore.
This commit is contained in:
parent
c64e3149aa
commit
2ee3fd31a1
10 changed files with 66 additions and 0 deletions
|
|
@ -167,6 +167,10 @@ func (t *TestImageType) Size(size uint64) uint64 {
|
|||
return 0
|
||||
}
|
||||
|
||||
func (t *TestImageType) PartitionType() string {
|
||||
return ""
|
||||
}
|
||||
|
||||
func (t *TestImageType) Packages(bp blueprint.Blueprint) ([]string, []string) {
|
||||
return nil, nil
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue