From: Lennart Poettering Date: Mon, 6 May 2013 19:04:31 +0000 (+0200) Subject: nspawn: explain that we look for /etc/os-release in the container directory X-Git-Tag: v203~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f8964235e69f58225dec378437b1789744cd22a9;p=thirdparty%2Fsystemd.git nspawn: explain that we look for /etc/os-release in the container directory https://bugs.freedesktop.org/show_bug.cgi?id=64014 --- diff --git a/man/systemd-nspawn.xml b/man/systemd-nspawn.xml index e7c859d11da..cab5990a567 100644 --- a/man/systemd-nspawn.xml +++ b/man/systemd-nspawn.xml @@ -133,6 +133,15 @@ Container Interface specification. + + As a safety check + systemd-nspawn will verify the + existance of /etc/os-release in + the container tree before starting the container (see + os-release5). It + might be necessary to add this file to the container + tree manually if the OS of the container is too old to + contain this file out-of-the-box. diff --git a/src/nspawn/nspawn.c b/src/nspawn/nspawn.c index e907a1daa7f..f3568ab40c3 100644 --- a/src/nspawn/nspawn.c +++ b/src/nspawn/nspawn.c @@ -1285,7 +1285,7 @@ int main(int argc, char *argv[]) { } if (path_is_os_tree(arg_directory) <= 0) { - log_error("Directory %s doesn't look like an OS root directory. Refusing.", arg_directory); + log_error("Directory %s doesn't look like an OS root directory (/etc/os-release is missing). Refusing.", arg_directory); goto finish; }