Skip to content

Commit

Permalink
do not try to create missing resources
Browse files Browse the repository at this point in the history
  • Loading branch information
mirkobrombin committed Jul 9, 2023
1 parent 5ce133a commit 49098aa
Showing 1 changed file with 1 addition and 32 deletions.
33 changes: 1 addition & 32 deletions core/pico.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,38 +19,7 @@ func PicoExists() bool {
}

func PicoInit() error {
var stack *core.Stack
if !core.StackExists("vso-pico") {

if !core.PkgManagerExists("vso-apt") {
core.NewPkgManager(
"vso-apt",
true,
"autoremove",
"clean",
"install",
"list",
"purge",
"remove",
"search",
"show",
"update",
"upgrade",
true,
)
}

stack = core.NewStack(
"vso-pico",
"registry.vanillaos.org/vanillaos/pico:main",
[]string{"systemd"},
"vso-apt",
true,
)
} else {
stack, _ = core.LoadStack("vso-pico")
}

stack, _ := core.LoadStack("vso-pico")
subsystem, err := core.NewSubSystem(
"vso-pico",
stack,
Expand Down

0 comments on commit 49098aa

Please sign in to comment.