osbuild has recently got support for specifying mounts as an array. This commit takes advantage of it and uses this new format. This allows us to specify the order of mounts which is important because we cannot mount /boot/efi before / is mounted. Signed-off-by: Ondřej Budai <ondrej@budai.cz>
17 lines
337 B
Go
17 lines
337 B
Go
package osbuild2
|
|
|
|
type Mounts interface {
|
|
isStageMounts()
|
|
}
|
|
|
|
type Mount struct {
|
|
Name string `json:"name"`
|
|
Type string `json:"type"`
|
|
Source string `json:"source"`
|
|
Target string `json:"target"`
|
|
Options *MountOptions `json:"options,omitempty"`
|
|
}
|
|
|
|
type MountOptions interface {
|
|
isMountOptions()
|
|
}
|