mirror of
https://github.com/kairos-io/kairos-agent.git
synced 2025-08-31 16:39:20 +00:00
Add root path flag to install-bundle (#28)
This commit is contained in:
6
main.go
6
main.go
@@ -197,6 +197,10 @@ E.g. kairos-agent install-bundle container:quay.io/kairos/kairos...
|
|||||||
EnvVars: []string{"REPOSITORY"},
|
EnvVars: []string{"REPOSITORY"},
|
||||||
Value: "docker://quay.io/kairos/packages",
|
Value: "docker://quay.io/kairos/packages",
|
||||||
},
|
},
|
||||||
|
&cli.StringFlag{
|
||||||
|
Name: "root-path",
|
||||||
|
Value: "/",
|
||||||
|
},
|
||||||
&cli.BoolFlag{
|
&cli.BoolFlag{
|
||||||
Name: "local-file",
|
Name: "local-file",
|
||||||
EnvVars: []string{"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 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"))})
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user