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:
Andrey Vagin 2015-04-17 07:54:22 +03:00 committed by Michael Crosby
parent 553b8be2d0
commit 328786f70e
1 changed files with 0 additions and 4 deletions

View File

@ -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 {