osbuild2: lvm2 create stage constructor takes device map
This is needed so we can have LVM be contained inside a LUKS container, which is inside a partition; i.e. multiple devices are needed to get to the target device. Co-Authored-By: Achilleas Koutsou <achilleas@koutsou.net>
This commit is contained in:
parent
602111dedd
commit
44b5142234
1 changed files with 2 additions and 2 deletions
|
|
@ -35,7 +35,7 @@ type LogicalVolume struct {
|
|||
Size string `json:"size"`
|
||||
}
|
||||
|
||||
func NewLVM2CreateStage(options *LVM2CreateStageOptions, device *Device) *Stage {
|
||||
func NewLVM2CreateStage(options *LVM2CreateStageOptions, devices Devices) *Stage {
|
||||
if err := options.validate(); err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
|
@ -43,6 +43,6 @@ func NewLVM2CreateStage(options *LVM2CreateStageOptions, device *Device) *Stage
|
|||
return &Stage{
|
||||
Type: "org.osbuild.lvm2.create",
|
||||
Options: options,
|
||||
Devices: Devices{"device": *device},
|
||||
Devices: devices,
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue