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>
17 lines
346 B
Go
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,
|
|
}
|
|
}
|