[lxc-devel] [lxd/master] don't remove config file on forkmigrate

tych0 on Github lxc-bot at linuxcontainers.org
Wed Apr 27 17:36:02 UTC 2016


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 472 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20160427/25fe33c0/attachment.bin>
-------------- next part --------------
From a23016bd81c51c5aaf125d4a3ca2346dcd0b0821 Mon Sep 17 00:00:00 2001
From: Tycho Andersen <tycho.andersen at canonical.com>
Date: Wed, 27 Apr 2016 17:34:08 +0000
Subject: [PATCH] don't remove config file on forkmigrate

068313ad07d8971cd148a345463310227fcdad39 moved the config file to a
non-temp file, so let's not delete it.

Signed-off-by: Tycho Andersen <tycho.andersen at canonical.com>
---
 lxd/migrate.go | 2 --
 1 file changed, 2 deletions(-)

diff --git a/lxd/migrate.go b/lxd/migrate.go
index aee88c1..fdaab35 100644
--- a/lxd/migrate.go
+++ b/lxd/migrate.go
@@ -712,8 +712,6 @@ func MigrateContainer(args []string) error {
 	configPath := args[3]
 	imagesDir := args[4]
 
-	defer os.Remove(configPath)
-
 	c, err := lxc.NewContainer(name, lxcpath)
 	if err != nil {
 		return err


More information about the lxc-devel mailing list