2021-03-31 18:24:19 +02:00
|
|
|
From 3d1b2e56a6ed6cc86a64f6f89765a2900e576402 Mon Sep 17 00:00:00 2001
|
2020-01-26 14:56:41 +01:00
|
|
|
From: Eelco Dolstra <eelco.dolstra@logicblox.com>
|
|
|
|
Date: Wed, 16 Apr 2014 10:59:28 +0200
|
2021-03-31 18:24:19 +02:00
|
|
|
Subject: [PATCH 03/19] Fix NixOS containers
|
2020-01-26 14:56:41 +01:00
|
|
|
|
|
|
|
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
|
2021-03-31 18:24:19 +02:00
|
|
|
index 7515380fcd..14f8a82eb8 100644
|
2020-01-26 14:56:41 +01:00
|
|
|
--- a/src/nspawn/nspawn.c
|
|
|
|
+++ b/src/nspawn/nspawn.c
|
2021-03-31 18:24:19 +02:00
|
|
|
@@ -5323,6 +5323,7 @@ static int run(int argc, char *argv[]) {
|
2020-01-26 14:56:41 +01:00
|
|
|
goto finish;
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
+#if 0
|
|
|
|
const char *p, *q;
|
|
|
|
|
|
|
|
if (arg_pivot_root_new)
|
2021-03-31 18:24:19 +02:00
|
|
|
@@ -5337,6 +5338,7 @@ static int run(int argc, char *argv[]) {
|
2020-01-26 14:56:41 +01:00
|
|
|
r = -EINVAL;
|
|
|
|
goto finish;
|
|
|
|
}
|
|
|
|
+#endif
|
|
|
|
}
|
|
|
|
|
|
|
|
} else {
|
|
|
|
--
|
2021-03-31 18:24:19 +02:00
|
|
|
2.30.1
|
2020-01-26 14:56:41 +01:00
|
|
|
|