From 58c4a7b4e9d9c34b92deded6aea814738821059d Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 16 Apr 2014 10:59:28 +0200 Subject: [PATCH 04/27] Fix NixOS containers In NixOS containers, the init script is bind-mounted into the container, so checking early whether it exists will fail. --- src/nspawn/nspawn.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/nspawn/nspawn.c b/src/nspawn/nspawn.c index 5d9290b1cf..26615901c3 100644 --- a/src/nspawn/nspawn.c +++ b/src/nspawn/nspawn.c @@ -4924,6 +4924,7 @@ static int run(int argc, char *argv[]) { goto finish; } } else { +#if 0 const char *p, *q; if (arg_pivot_root_new) @@ -4938,6 +4939,7 @@ static int run(int argc, char *argv[]) { r = -EINVAL; goto finish; } +#endif } } else { -- 2.24.1