The following pull request was submitted through Github.
It can be accessed and reviewed at: https://github.com/lxc/lxd/pull/1559

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) ===
This re-enables a pts device backing /dev/console and allows container
writes to it.

That change will break CRIU until it knows how to deal with
/dev/console, but lakc of /dev/console is breaking enough workloads that
it's the best option for now.

Closes #1463

Signed-off-by: Stéphane Graber <stgra...@ubuntu.com>
From a100a5666b02416dce644ace51811deba656d32a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?St=C3=A9phane=20Graber?= <stgra...@ubuntu.com>
Date: Mon, 1 Feb 2016 09:07:31 +0100
Subject: [PATCH] Re-enable /dev/console
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

This re-enables a pts device backing /dev/console and allows container
writes to it.

That change will break CRIU until it knows how to deal with
/dev/console, but lakc of /dev/console is breaking enough workloads that
it's the best option for now.

Closes #1463

Signed-off-by: Stéphane Graber <stgra...@ubuntu.com>
---
 lxd/container_lxc.go | 11 -----------
 1 file changed, 11 deletions(-)

diff --git a/lxd/container_lxc.go b/lxd/container_lxc.go
index 4a9e462..fa0dd31 100644
--- a/lxd/container_lxc.go
+++ b/lxd/container_lxc.go
@@ -386,17 +386,6 @@ func (c *containerLXC) initLXC() error {
                return err
        }
 
-       // FIXME: Should go away once CRIU supports checkpoint/restore of 
/dev/console
-       err = lxcSetConfigItem(cc, "lxc.console", "none")
-       if err != nil {
-               return err
-       }
-
-       err = lxcSetConfigItem(cc, "lxc.cgroup.devices.deny", "c 5:1 rwm")
-       if err != nil {
-               return err
-       }
-
        // Setup the hostname
        err = lxcSetConfigItem(cc, "lxc.utsname", c.Name())
        if err != nil {
_______________________________________________
lxc-devel mailing list
lxc-devel@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-devel

Reply via email to