mirror of
https://github.com/outbackdingo/debos.git
synced 2026-01-27 10:18:47 +00:00
@@ -2,6 +2,7 @@ version: "2"
|
||||
linters:
|
||||
default: none
|
||||
enable:
|
||||
- govet
|
||||
- staticcheck
|
||||
formatters:
|
||||
enable:
|
||||
|
||||
@@ -215,7 +215,7 @@ type Partition struct {
|
||||
Flags []string
|
||||
Features []string
|
||||
ExtendedOptions []string
|
||||
Fsck bool "fsck"
|
||||
Fsck bool `yaml:"fsck"`
|
||||
FSUUID string
|
||||
}
|
||||
|
||||
@@ -250,7 +250,7 @@ type ImagePartitionAction struct {
|
||||
ImageSize string
|
||||
PartitionType string
|
||||
DiskID string
|
||||
GptGap string "gpt_gap"
|
||||
GptGap string `yaml:"gpt_gap"`
|
||||
Partitions []Partition
|
||||
Mountpoints []Mountpoint
|
||||
size int64
|
||||
@@ -639,7 +639,7 @@ func (i ImagePartitionAction) Run(context *debos.DebosContext) error {
|
||||
|
||||
devicePath := i.getPartitionDevice(p.number, *context)
|
||||
context.ImagePartitions = append(context.ImagePartitions,
|
||||
debos.Partition{p.Name, devicePath})
|
||||
debos.Partition{Name: p.Name, DevicePath: devicePath})
|
||||
}
|
||||
|
||||
context.ImageMntDir = path.Join(context.Scratchdir, "mnt")
|
||||
|
||||
@@ -64,7 +64,7 @@ import (
|
||||
type OstreeDeployAction struct {
|
||||
debos.BaseAction `yaml:",inline"`
|
||||
Repository string
|
||||
RemoteRepository string "remote_repository"
|
||||
RemoteRepository string `yaml:"remote_repository"`
|
||||
Branch string
|
||||
Os string
|
||||
SetupFSTab bool `yaml:"setup-fstab"`
|
||||
|
||||
@@ -306,7 +306,12 @@ actions:
|
||||
}
|
||||
|
||||
func runTestWithSubRecipes(t *testing.T, test testSubRecipe, templateVars ...map[string]string) actions.Recipe {
|
||||
context := debos.DebosContext{&debos.CommonContext{}, "", "", 512}
|
||||
context := debos.DebosContext{
|
||||
CommonContext: &debos.CommonContext{},
|
||||
RecipeDir: "",
|
||||
Architecture: "",
|
||||
SectorSize: 512,
|
||||
}
|
||||
dir, err := os.MkdirTemp("", "go-debos")
|
||||
assert.Empty(t, err)
|
||||
defer os.RemoveAll(dir)
|
||||
|
||||
@@ -94,7 +94,12 @@ func warnLocalhost(variable string, value string) {
|
||||
}
|
||||
|
||||
func main() {
|
||||
context := debos.DebosContext{&debos.CommonContext{}, "", "", 512}
|
||||
context := debos.DebosContext{
|
||||
CommonContext: &debos.CommonContext{},
|
||||
RecipeDir: "",
|
||||
Architecture: "",
|
||||
SectorSize: 512,
|
||||
}
|
||||
var options struct {
|
||||
Backend string `short:"b" long:"fakemachine-backend" description:"Fakemachine backend to use" default:"auto"`
|
||||
ArtifactDir string `long:"artifactdir" description:"Directory for packed archives and ostree repositories (default: current directory)"`
|
||||
|
||||
Reference in New Issue
Block a user