debian-forge-composer/internal/osbuild2/luks2_device.go
Achilleas Koutsou 16a975fe6f obsuild2: generalise mkfs stage device option generation
Refactor GenMkfsStages to work with entity based methods so that it is
now able to handle all generic cases of arbitrarily nested devices.

Co-Authored-By: Christian Kellner <christian@kellner.me>
2022-02-22 19:23:41 +00:00

17 lines
346 B
Go

package osbuild2
// Provide access to LUKS2 container
type LUKS2DeviceOptions struct {
Passphrase string `json:"passphrase"`
}
func (LUKS2DeviceOptions) isDeviceOptions() {}
func NewLUKS2Device(parent string, options *LUKS2DeviceOptions) *Device {
return &Device{
Type: "org.osbuild.luks2",
Parent: parent,
Options: options,
}
}