debian-forge-composer/internal/osbuild2/lvm2_lv_device.go
Achilleas Koutsou 39b0cf39d6 osbuild2: add support for LVM stages
Stage options implement a validate() method for checking values against
schema constraints.
2021-08-28 09:20:19 +02:00

17 lines
352 B
Go

package osbuild2
// Provide access to LVM2 Logical Volume (LV)
type LVM2LVDeviceOptions struct {
// Logical volume to activate
Volume string `json:"volume"`
}
func (LVM2LVDeviceOptions) isDeviceOptions() {}
func NewLVM2LVDevice(options *LoopbackDeviceOptions) *Device {
return &Device{
Type: "org.osbuild.lvm2.lv",
Options: options,
}
}