[lxc-devel] [lxd/master] Stop the storage code after we're done remapping
stgraber on Github
lxc-bot at linuxcontainers.org
Fri Apr 1 18:53:56 UTC 2016
A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 478 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20160401/9f304417/attachment.bin>
-------------- next part --------------
From 5976788d021725edd02abca577d324557450b209 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?St=C3=A9phane=20Graber?= <stgraber at ubuntu.com>
Date: Fri, 1 Apr 2016 14:52:57 -0400
Subject: [PATCH] Stop the storage code after we're done remapping
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Without this we forget to unmount the partition on LVM which then
prevents the container from starting.
Closes #1839
Signed-off-by: Stéphane Graber <stgraber at ubuntu.com>
---
lxd/container_lxc.go | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/lxd/container_lxc.go b/lxd/container_lxc.go
index 9ad3a9c..57e3901 100644
--- a/lxd/container_lxc.go
+++ b/lxd/container_lxc.go
@@ -963,6 +963,11 @@ func (c *containerLXC) startCommon() (string, error) {
return "", err
}
}
+
+ err = c.StorageStop()
+ if err != nil {
+ return "", err
+ }
}
err = c.ConfigKeySet("volatile.last_state.idmap", jsonIdmap)
More information about the lxc-devel
mailing list