From b28fbb20a3887b0614aa624689b6a8942c911d7e Mon Sep 17 00:00:00 2001 From: Andrey Vagin Date: Wed, 25 Mar 2015 15:50:18 +0300 Subject: [PATCH] cr: don't umount rootfs which was not mounted by us Signed-off-by: Andrey Vagin --- container_linux.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/container_linux.go b/container_linux.go index aa88aed0..4e04f793 100644 --- a/container_linux.go +++ b/container_linux.go @@ -346,9 +346,9 @@ func (c *linuxContainer) Restore(process *Process) error { if err := syscall.Mount(c.config.Rootfs, c.config.Rootfs, "bind", syscall.MS_BIND|syscall.MS_REC, ""); err != nil { return err } - */ - defer syscall.Unmount(c.config.Rootfs, syscall.MNT_DETACH) + defer syscall.Unmount(c.config.Rootfs, syscall.MNT_DETACH) + */ cmd := exec.Command(c.criuPath, args...) cmd.Stdin = process.Stdin cmd.Stdout = process.Stdout