[lxc-devel] [lxd/master] Set lxc.rootfs.bdev

stgraber on Github lxc-bot at linuxcontainers.org
Sat Apr 2 22:14:32 UTC 2016


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 354 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20160402/d4882d00/attachment.bin>
-------------- next part --------------
From bd0fd1019238d7f07f979519cb0693f1e8720824 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?St=C3=A9phane=20Graber?= <stgraber at ubuntu.com>
Date: Sat, 2 Apr 2016 18:13:38 -0400
Subject: [PATCH] Set lxc.rootfs.bdev
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Signed-off-by: Stéphane Graber <stgraber at ubuntu.com>
---
 lxd/container_lxc.go | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/lxd/container_lxc.go b/lxd/container_lxc.go
index ce93c09..178497f 100644
--- a/lxd/container_lxc.go
+++ b/lxd/container_lxc.go
@@ -788,6 +788,9 @@ func (c *containerLXC) initLXC() error {
 						return err
 					}
 				}
+
+				// Set the rootfs bdev type (not fatal as not all LXC versions support it)
+				lxcSetConfigItem(cc, "lxc.rootfs.bdev", "dir")
 			} else {
 				rbind := ""
 				options := []string{}


More information about the lxc-devel mailing list