[Lxc-users] mknod inside a container
Gordon Henderson
gordon at drogon.net
Fri Nov 4 15:46:44 UTC 2011
On Fri, 4 Nov 2011, Daniel Lezcano wrote:
> 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.
Yup. That was it, thanks!
I had it in my mind that it was capabilities rather than simple devices
stuff.
Cheers,
Gordon
More information about the lxc-users
mailing list