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>
10 lines
175 B
Go
10 lines
175 B
Go
package osbuild2
|
|
|
|
func NewFATMount(name, source, target string) *Mount {
|
|
return &Mount{
|
|
Type: "org.osbuild.fat",
|
|
Name: name,
|
|
Source: source,
|
|
Target: target,
|
|
}
|
|
}
|