[systemd-devel] [PATCH 1/1] nspawn: less cryptic error when clone() fails due to lack of adaquate namespace support in kernel

Lennart Poettering lennart at poettering.net
Mon Mar 5 17:07:50 PST 2012


On Tue, 28.02.12 11:40, shawn (shawnlandden at gmail.com) wrote:

> Running systemd-nspawn on a Linux kernel compiled without
> 
>   CONFIG_NAMESPACES=y
>   CONFIG_UTS_NS=y
>   CONFIG_IPC_NS=y
>   CONFIG_PID_NS=y
>   CONFIG_NET_NS=y
> 
> fails with the cryptic error message
> 
>   clone() failed: Invalid argument
> 
> Give user a more helpful error message when clone() fails

I have now applied a similar patch which however only prints this
informative messages on EINVAL and not otherwise.

Lennart

-- 
Lennart Poettering - Red Hat, Inc.


More information about the systemd-devel mailing list