mirror of
https://github.com/containers/podman.git
synced 2026-02-05 06:45:31 +01:00
add bootc transports to os-apply
now that we use `bootc switch` for changing out-of-band updates, we can consider also using some of their supported transports. * containers-storage * oci * oci-archive * registry RUN-3963 Signed-off-by: Brent Baude <bbaude@redhat.com>
This commit is contained in:
@@ -12,14 +12,18 @@ import (
|
||||
)
|
||||
|
||||
var applyCmd = &cobra.Command{
|
||||
Use: "apply [options] IMAGE [NAME]",
|
||||
Use: "apply [options] URI [NAME]",
|
||||
Short: "Apply an OCI image to a Podman Machine's OS",
|
||||
Long: "Apply custom layers from a containerized Fedora CoreOS OCI image on top of an existing VM",
|
||||
PersistentPreRunE: validate.NoOp,
|
||||
Args: cobra.RangeArgs(1, 2),
|
||||
RunE: apply,
|
||||
ValidArgsFunction: common.AutocompleteImages,
|
||||
Example: `podman machine os apply myimage`,
|
||||
ValidArgsFunction: func(cmd *cobra.Command, args []string, toComplete string) ([]cobra.Completion, cobra.ShellCompDirective) {
|
||||
images, _ := common.AutocompleteImages(cmd, args, toComplete)
|
||||
// We also accept an URI so ignore ShellCompDirectiveNoFileComp and use the default one instead to get file paths completed by the shell.
|
||||
return images, cobra.ShellCompDirectiveDefault
|
||||
},
|
||||
Example: `podman machine os apply myimage`,
|
||||
}
|
||||
|
||||
var restart bool
|
||||
|
||||
Reference in New Issue
Block a user