Add root path flag to install-bundle (#28)

This commit is contained in:
Itxaka 2023-05-18 12:10:09 +02:00 committed by GitHub
parent 0288fb111b
commit 8680b0ae93
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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"))})
},
},
{