debian-forge-composer/internal/osbuild2/ext4_mount.go
Ondřej Budai c656972f25 osbuild2: specify mounts as an array
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>
2021-07-24 15:54:00 +02:00

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,
}
}