mirror of
https://github.com/kairos-io/kairos-agent.git
synced 2025-04-27 19:28:59 +00:00
Add root path flag to install-bundle (#28)
This commit is contained in:
parent
0288fb111b
commit
8680b0ae93
6
main.go
6
main.go
@ -197,6 +197,10 @@ E.g. kairos-agent install-bundle container:quay.io/kairos/kairos...
|
||||
EnvVars: []string{"REPOSITORY"},
|
||||
Value: "docker://quay.io/kairos/packages",
|
||||
},
|
||||
&cli.StringFlag{
|
||||
Name: "root-path",
|
||||
Value: "/",
|
||||
},
|
||||
&cli.BoolFlag{
|
||||
Name: "local-file",
|
||||
EnvVars: []string{"LOCAL_FILE"},
|
||||
@ -208,7 +212,7 @@ E.g. kairos-agent install-bundle container:quay.io/kairos/kairos...
|
||||
return fmt.Errorf("bundle name required")
|
||||
}
|
||||
|
||||
return bundles.RunBundles([]bundles.BundleOption{bundles.WithRepository(c.String("repository")), bundles.WithTarget(c.Args().First()), bundles.WithLocalFile(c.Bool("local-file"))})
|
||||
return bundles.RunBundles([]bundles.BundleOption{bundles.WithRootFS(c.String("root-path")), bundles.WithRepository(c.String("repository")), bundles.WithTarget(c.Args().First()), bundles.WithLocalFile(c.Bool("local-file"))})
|
||||
},
|
||||
},
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user