[systemd-devel] systemd-nspawn and kernel command line

Lennart Poettering lennart at poettering.net
Sun Dec 8 15:48:50 PST 2013


On Sat, 07.12.13 18:33, Colin Guthrie (gmane at colin.guthr.ie) wrote:

> Hi,
> 
> When playing with systemd-nspawn, is there a way to override the kernel
> command line seen inside the container. I mean it's probably not correct
> that the host systems /proc/cmdline leaks into the container.

Most of systemd's own code actually knows this, and will ignore
/proc/cmdline if it detects that it is being run in a container. (I
recently unified this checking in util.c's proc_cmdline() call, so that
we don't forget to check this by mistake somewhere).

Where di you run into problems with this?

Lennart

-- 
Lennart Poettering, Red Hat


More information about the systemd-devel mailing list