mirror of
https://github.com/rancher/os.git
synced 2025-08-25 09:49:22 +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
|
||||
}
|
||||
|
||||
if err := container.Delete(); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
if reboot && (force || yes(in, "Continue with reboot")) {
|
||||
log.Info("Rebooting")
|
||||
power.Reboot()
|
||||
|
Loading…
Reference in New Issue
Block a user