[Bug 1075717] Re: mounted-dev must not re-create consoles in a container
Serge Hallyn
1075717 at bugs.launchpad.net
Wed Nov 28 20:45:16 UTC 2012
As per discussion on #ubuntu-devel, lxc should run MAKEDEV in the
container before setting up its devices.
To do this, teh setup_autodev() function must be split up. We'll first
mount all lxc filesystems (including a fresh /dev), then run MAKEDEV
console in the container, then do the rest of setup_autodev() if
lxc.autodev = 1.
** Also affects: lxc (Ubuntu)
Importance: Undecided
Status: New
** Changed in: lxc (Ubuntu)
Importance: Undecided => High
** Changed in: lxc (Ubuntu)
Status: New => Triaged
** Changed in: lxc (Ubuntu)
Assignee: (unassigned) => Serge Hallyn (serge-hallyn)
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to mountall in Ubuntu.
https://bugs.launchpad.net/bugs/1075717
Title:
mounted-dev must not re-create consoles in a container
Status in “lxc” package in Ubuntu:
Triaged
Status in “mountall” package in Ubuntu:
Triaged
Bug description:
mounted-dev.conf always does MAKEDEV console. MAKEDEV doesn't just
make the devices, it first removes them.
When a container starts, it sets up /dev/console and /dev/lxc[1-4] as
bind mounts of ptys on the host, for use as lxc consoles. If mounted-
dev deletes and recreates those, then none of the lxc consoles work.
A simple patch which stops it from breaking lxc consoles is at lp
:~serge-hallyn/ubuntu/quantal/mountall/mountall-lxc . However looking
back at it, I think it would be ok to do a further check for whether
/dev/console exists. If it does not exist, then MAKEDEV console
anyway. This isn't necessary, just a thought.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/1075717/+subscriptions
More information about the foundations-bugs
mailing list