cr: don't remove images after restore
This code was added when images were saved in a factory root directory and in addition this directory was used as a flag. Now an user can decide when images can be removed. Signed-off-by: Andrey Vagin <avagin@openvz.org>
This commit is contained in:
parent
553b8be2d0
commit
328786f70e
|
@ -565,10 +565,6 @@ func (c *linuxContainer) criuNotifications(resp *criurpc.CriuResp, process *Proc
|
|||
break
|
||||
|
||||
case notify.GetScript() == "post-restore":
|
||||
// In many case, restore from the images can be done only once.
|
||||
// If we want to create snapshots, we need to snapshot the file system.
|
||||
os.RemoveAll(imagePath)
|
||||
|
||||
pid := notify.GetPid()
|
||||
r, err := newRestoredProcess(int(pid))
|
||||
if err != nil {
|
||||
|
|
Loading…
Reference in New Issue