Stages: - org.osbuild.copy - org.osbuild.truncate - org.osbuild.sfdisk - org.osbuild.qemu - org.osbuild.mkfs.btrfs - org.osbuild.mkfs.ext4 - org.osbuild.mkfs.fat - org.osbuild.mkfs.xfs - org.osbuild.grub2.inst Stages can now have devices and mounts in addition to options and inputs. Devices: - org.osbuild.loopback Mounts: - org.osbuild.btrfs - org.osbuild.ext4 - org.osbuild.fat - org.osbuild.xfs
16 lines
300 B
Go
16 lines
300 B
Go
package osbuild2
|
|
|
|
type Mounts interface {
|
|
isStageMounts()
|
|
}
|
|
|
|
type Mount struct {
|
|
Type string `json:"type"`
|
|
Source string `json:"source"`
|
|
Target string `json:"target"`
|
|
Options *MountOptions `json:"options,omitempty"`
|
|
}
|
|
|
|
type MountOptions interface {
|
|
isMountOptions()
|
|
}
|