[systemd-devel] [PATCH] [PATCH v3] nspawn: fallback on bind mount when mknod fails

Lennart Poettering lennart at poettering.net
Tue Mar 31 08:24:34 PDT 2015


On Tue, 31.03.15 17:14, Alban Crequy (alban.crequy at gmail.com) wrote:

> From: Alban Crequy <alban at endocode.com>
> 
> Some systems abusively restrict mknod, even when the device node already
> exists in /dev. This is unfortunate because it prevents systemd-nspawn
> from creating the basic devices in /dev in the container.
> 
> This patch implements a workaround: when mknod fails, fallback on bind
> mounts.
> 
> Additionally, /dev/console was created with a mknod with the same
> major/minor as /dev/null before bind mounting a pts on it. This patch
> removes the mknod and creates an empty regular file instead.
> 
> In order to test this patch, I used the following configuration, which I
> think should replicate the system with the abusive restriction on
> mknod:

Thanks! Applied!

Lennart

-- 
Lennart Poettering, Red Hat


More information about the systemd-devel mailing list