mirror of
https://github.com/systemd/systemd.git
synced 2025-02-28 05:57:33 +03:00
nspawn: explain that we look for /etc/os-release in the container directory
https://bugs.freedesktop.org/show_bug.cgi?id=64014
This commit is contained in:
parent
07125a9240
commit
f8964235e6
@ -133,6 +133,15 @@
|
||||
<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>
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user