<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Wed, Dec 23, 2015 at 3:10 PM, Emmanuel Coirier <span dir="ltr"><<a href="mailto:ecoirier@olfeo.com" target="_blank">ecoirier@olfeo.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello everyone,<br>
<br>
I have encountered a problem with a systemd-nspawn container and deboostrap running in this container.<br>
<br>
When I try to launch deboostrap inside the container, debootstrap stops because it tries to unpack a tar archive that creates devices like /dev/console. The error is "EPERM". Here is the full command list :<br></blockquote><div><br></div><div>Hmm, isn't debootstrap supposed to run outside the container? Or are you trying to nest two containers?</div><div><br></div><div>Anyway, nspawn containers by default limit devices via both POSIX capabilities and cgroups; you would need --capability=cap_mknod to create device nodes, and <some cgroup pixie dust> to access them in case they're not in the defautl whitelist.</div></div><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">Mantas Mikulėnas <<a href="mailto:grawity@gmail.com" target="_blank">grawity@gmail.com</a>></div></div>
</div></div>