nspawn: require /etc/os-release only for init

/etc/os-release is expected for the case for booting a full system, and
need not be required for thin container execution.
This commit is contained in:
Vincent Batts
2014-02-10 11:57:53 +01:00
committed by Tom Gundersen
parent d50cf59b94
commit fcf90586a2
+1 -1
View File
@@ -1200,7 +1200,7 @@ int main(int argc, char *argv[]) {
goto finish;
}
if (path_is_os_tree(arg_directory) <= 0) {
if (arg_boot && path_is_os_tree(arg_directory) <= 0) {
log_error("Directory %s doesn't look like an OS root directory (/etc/os-release is missing). Refusing.", arg_directory);
goto finish;
}