mirror of
https://github.com/rancher/os.git
synced 2025-09-13 13:39:53 +00:00
Delete previous upgrade container before upgrading
This commit is contained in:
@@ -212,6 +212,12 @@ func startUpgradeContainer(image string, stage, force, reboot, kexec bool) error
|
||||
}
|
||||
}
|
||||
|
||||
// If there is already an upgrade container, delete it
|
||||
// Up() should to this, but currently does not due to a bug
|
||||
if err := container.Delete(); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
if err := container.Up(); err != nil {
|
||||
return err
|
||||
}
|
||||
|
Reference in New Issue
Block a user