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

2015-03-31 Thread Lennart Poettering
On Tue, 31.03.15 16:51, Alban Crequy (alban.cre...@gmail.com) wrote: > -if (mknod(to, st.st_mode, st.st_rdev) < 0) > -return log_error_errno(errno, "mknod(%s) > failed: %m", to); > +if (mknod(to, st.st_mode, st.st_rde

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

2015-03-31 Thread Alban Crequy
From: Alban Crequy 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 moun