mirror of
https://github.com/rancher/os.git
synced 2025-08-25 17:59:17 +00:00
Merge pull request #782 from joshwget/clean-up-upgrade-container
Clean up upgrade container
This commit is contained in:
commit
c7cbb1660a
@ -213,6 +213,10 @@ func startUpgradeContainer(image string, stage, force, reboot bool) error {
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if err := container.Delete(); err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
if reboot && (force || yes(in, "Continue with reboot")) {
|
if reboot && (force || yes(in, "Continue with reboot")) {
|
||||||
log.Info("Rebooting")
|
log.Info("Rebooting")
|
||||||
power.Reboot()
|
power.Reboot()
|
||||||
|
Loading…
Reference in New Issue
Block a user