makedev fails to upgrade in lxc container with error 'Device or resource busy'

Bug #927519 reported by James Hunt
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
lxc (Ubuntu)
Fix Released
Medium
Unassigned
makedev (Ubuntu)
Invalid
Medium
Unassigned

Bug Description

Setting up makedev (2.3.1-89ubuntu2) ...
mv: cannot move `console-' to `console': Device or resource busy
makedev console c 5 1 root tty 0600: failed
Setting up initscripts (2.88dsf-13.10ubuntu9) ...

Related branches

Revision history for this message
Stéphane Graber (stgraber) wrote :

Right, that's caused by the fact that /dev/console is a bind mounted file in LXC containers.
I'm not sure what we can do to avoid this issue, ignoring the error completely in makedev sounds bad and would just be an ugly workaround for an LXC issue.

On LXC's side, we need these bind mounts until we get a device namespace, at least it's extremely rare makedev gets updated so it's unlikely to be an issue for our post-release users.

Serge: Any other idea on how to solve this? (I'm guessing the udev bug in bug 927531 may have the same cause)

Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

If we have lxc bind-mound the console onto /dev/lxcconsole and change /etc/init/lxcconsole.conf accordingly, is there any other place we'd have to change this? Or would that suffice?

We could do the same renaming our bind-mounted /dev/tty1 to /dev/lxctty1.

Changed in makedev (Ubuntu):
status: New → Confirmed
importance: Undecided → Medium
Changed in lxc (Ubuntu):
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package lxc - 0.7.5-3ubuntu24

---------------
lxc (0.7.5-3ubuntu24) precise; urgency=low

  [ Serge Hallyn ]
  * 0040-consoles-into-devlxc.patch: move lxc's console and ttys into
    /dev/lxc/, and create symlinks into /dev. (LP: #927519)

  [ Stéphane Graber ]
  * 0041-ubuntu-template-user-and-tty:
    + Use ubuntu/ubuntu by default instead of root/root
    + Set devttydir to /dev/lxc on Precise
    + Stop modifying dhclient.conf as the default behavior is identical.
    + Stop removing tty[56].conf on Precise
    + Do not modify /etc/udev/udev.conf on Precise
    + Move information message about default login/password to the end
      of the container cration so users can't miss it.
 -- Stephane Graber <email address hidden> Fri, 10 Feb 2012 17:09:15 -0500

Changed in lxc (Ubuntu):
status: Confirmed → Fix Released
Changed in makedev (Ubuntu):
status: Confirmed → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.