1 From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
2 From: Eelco Dolstra <eelco.dolstra@logicblox.com>
3 Date: Wed, 16 Apr 2014 10:59:28 +0200
4 Subject: [PATCH] Fix NixOS containers
6 In NixOS containers, the init script is bind-mounted into the
7 container, so checking early whether it exists will fail.
9 src/nspawn/nspawn.c | 2 ++
10 1 file changed, 2 insertions(+)
12 diff --git a/src/nspawn/nspawn.c b/src/nspawn/nspawn.c
13 index 4fee8a693c..756ce11b1f 100644
14 --- a/src/nspawn/nspawn.c
15 +++ b/src/nspawn/nspawn.c
16 @@ -6028,6 +6028,7 @@ static int run(int argc, char *argv[]) {
21 _cleanup_free_ char *p = NULL;
23 if (arg_pivot_root_new)
24 @@ -6044,6 +6045,7 @@ static int run(int argc, char *argv[]) {
25 "Directory %s doesn't look like it has an OS tree (/usr/ directory is missing). Refusing.", arg_directory);