2020-11-01 15:35:11 +01:00
|
|
|
From 3581f8f30270e6340c671a640fe551e954715f8e 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
|
2020-04-30 01:03:18 +02:00
|
|
|
Subject: [PATCH 03/18] 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
|
2020-11-01 15:35:11 +01:00
|
|
|
index 0842731c18..f790853104 100644
|
2020-01-26 14:56:41 +01:00
|
|
|
--- a/src/nspawn/nspawn.c
|
|
|
|
+++ b/src/nspawn/nspawn.c
|
2020-11-01 15:35:11 +01:00
|
|
|
@@ -5319,6 +5319,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)
|
2020-11-01 15:35:11 +01:00
|
|
|
@@ -5333,6 +5334,7 @@ static int run(int argc, char *argv[]) {
|
2020-01-26 14:56:41 +01:00
|
|
|
r = -EINVAL;
|
|
|
|
goto finish;
|
|
|
|
}
|
|
|
|
+#endif
|
|
|
|
}
|
|
|
|
|
|
|
|
} else {
|
|
|
|
--
|
2020-11-01 15:35:11 +01:00
|
|
|
2.29.2
|
2020-01-26 14:56:41 +01:00
|
|
|
|