summaryrefslogtreecommitdiff
path: root/cmd/podman/system_renumber.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/podman/system_renumber.go')
-rw-r--r--cmd/podman/system_renumber.go11
1 files changed, 8 insertions, 3 deletions
diff --git a/cmd/podman/system_renumber.go b/cmd/podman/system_renumber.go
index 7f9436d5d..c8ce628b1 100644
--- a/cmd/podman/system_renumber.go
+++ b/cmd/podman/system_renumber.go
@@ -12,7 +12,8 @@ var (
renumberDescription = `
podman system renumber
- Migrate lock numbers to handle a change in maximum number of locks
+ Migrate lock numbers to handle a change in maximum number of locks.
+ Mandatory after the number of locks in libpod.conf is changed.
`
_renumberCommand = &cobra.Command{
@@ -34,11 +35,15 @@ func init() {
func renumberCmd(c *cliconfig.SystemRenumberValues) error {
// We need to pass one extra option to NewRuntime.
- // This will inform the OCI runtime to start
- _, err := libpodruntime.GetRuntimeRenumber(&c.PodmanCommand)
+ // This will inform the OCI runtime to start a renumber.
+ // That's controlled by the last argument to GetRuntime.
+ r, err := libpodruntime.GetRuntimeRenumber(&c.PodmanCommand)
if err != nil {
return errors.Wrapf(err, "error renumbering locks")
}
+ if err := r.Shutdown(false); err != nil {
+ return err
+ }
return nil
}