[systemd-devel] mknod forbidden in systemd-nspawn container
Lennart Poettering
lennart at poettering.net
Wed Dec 23 15:45:43 PST 2015
On Wed, 23.12.15 23:12, Johan Ouwerkerk (jm.ouwerkerk at gmail.com) wrote:
> > My goal is to have a light container able to build a software that runs in a light container (actually in a legacy chroot). And one of the first steps is to debootstrap a virgin system. Is this use case possible ?
>
> Maybe try --variant=fakechroot ? Haven't tested this but my guess is
> that if that is the button to push to persuade debootstrap to run as
> normal user, maybe in this mode it's also smart enough not to try
> creating device nodes. (Unpacking its devices.tar.gz file.) If you
> can't persuade debootstrap, though, there's multistrap also.
Why does debootstrap create device nodes at all? Does Debian support
setups with /dev being on persistent media? Note that udev has not
supported non-devtmpfs boots since a long time. If Debian requires
udev, then there's really no point in ever creating a device node in
debootstrap, because devtmpfs does that...
Lennart
--
Lennart Poettering, Red Hat
More information about the systemd-devel
mailing list