]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
nspawn: explain that we look for /etc/os-release in the container directory
authorLennart Poettering <lennart@poettering.net>
Mon, 6 May 2013 19:04:31 +0000 (21:04 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 6 May 2013 19:06:18 +0000 (21:06 +0200)
https://bugs.freedesktop.org/show_bug.cgi?id=64014

man/systemd-nspawn.xml
src/nspawn/nspawn.c

index e7c859d11daea90f458b1ab63b2ebcaa74609d18..cab5990a567b793f218201a3b109e71dcb0e04e4 100644 (file)
                 <ulink
                 url="http://www.freedesktop.org/wiki/Software/systemd/ContainerInterface">Container
                 Interface</ulink> specification.</para>
+
+                <para>As a safety check
+                <command>systemd-nspawn</command> will verify the
+                existance of <filename>/etc/os-release</filename> in
+                the container tree before starting the container (see
+                <citerefentry><refentrytitle>os-release</refentrytitle><manvolnum>5</manvolnum></citerefentry>). 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.</para>
         </refsect1>
 
         <refsect1>
index e907a1daa7f31549d45bca1747fc4523e3990780..f3568ab40c3a9e861dd539d559a1896628d09209 100644 (file)
@@ -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;
         }