[Lxc-users] mknod inside a container

Daniel Lezcano daniel.lezcano at free.fr
Fri Nov 4 14:56:30 UTC 2011


On 11/04/2011 03:34 PM, Gordon Henderson wrote:
>
> I have a container that's used to build a Linux image for an embedded
> device - and as part of the build script, it creates /dev/ via a sequence
> of mknod commands .... Which all fail )-:
>
> There are no cap.drop lines in the contianers config files and I'm
> currently working round this by doing it on the host and copying the
> directory from the host to the container but I'd really rather do it
> inside the container...
>
> So what have I missed, or is it simply not possible?

You probably have mknod restrictions through the lxc configuration file.

Check for lxc.cgroup.devices.* in the configuration file and comment 
them all.

Cheers
   -- Daniel





More information about the lxc-users mailing list