The following pull request was submitted through Github. It can be accessed and reviewed at: https://github.com/lxc/lxd/pull/4543
This e-mail was sent by the LXC bot, direct replies will not reach the author unless they happen to be subscribed to this list. === Description (from pull-request) === Closes #4538. Signed-off-by: Christian Brauner <[email protected]>
From cea6cf4a14e41a171ff4e92c86aa85024438a826 Mon Sep 17 00:00:00 2001 From: Christian Brauner <[email protected]> Date: Tue, 8 May 2018 11:58:45 +0200 Subject: [PATCH] container_lxc: fix optional property for disk devs Closes #4538. Signed-off-by: Christian Brauner <[email protected]> --- lxd/container_lxc.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lxd/container_lxc.go b/lxd/container_lxc.go index 26376e62e..7b49ca2ec 100644 --- a/lxd/container_lxc.go +++ b/lxd/container_lxc.go @@ -7527,6 +7527,10 @@ func (c *containerLXC) insertDiskDevice(name string, m types.Device) error { return fmt.Errorf("Failed to setup device: %s", err) } + if devPath == "" && shared.IsTrue(m["optional"]) { + return nil + } + flags := syscall.MS_BIND if isRecursive { flags |= syscall.MS_REC
_______________________________________________ lxc-devel mailing list [email protected] http://lists.linuxcontainers.org/listinfo/lxc-devel
