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