From 328786f70ec4b5cca4d9f248bac33fd5fbfa5eaf Mon Sep 17 00:00:00 2001 From: Andrey Vagin Date: Fri, 17 Apr 2015 07:54:22 +0300 Subject: [PATCH] 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 --- container_linux.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/container_linux.go b/container_linux.go index a4427355a..dc75de1d0 100644 --- a/container_linux.go +++ b/container_linux.go @@ -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 {