Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTasos Sahanidis <tasos@tasossah.com>2024-03-15 17:32:22 +0200
committerTasos Sahanidis <tasos@tasossah.com>2024-03-15 17:38:12 +0200
commitc9390d3301633a3ac7603ffe234ea0fe78f9f566 (patch)
treeb1bf5a9c11cfd5ea98af907b0f5a6c3a6d9d6bff
parenta1ca197bc99c2d5c2977630cc4c9dbfd5461d9c1 (diff)
Hack to fix building inside LXC containers
-rw-r--r--src/arch-nspawn.in12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/arch-nspawn.in b/src/arch-nspawn.in
index 8fcdead..8110337 100644
--- a/src/arch-nspawn.in
+++ b/src/arch-nspawn.in
@@ -140,4 +140,14 @@ else
set_arch="${CARCH}"
fi
-exec ${CARCH:+setarch "$set_arch"} systemd-nspawn "${nspawn_args[@]}" "$@"
+mkdir -p "${working_dir}/proc"
+mount proc "${working_dir}/proc" -t proc -o nosuid,noexec,nodev
+
+# Eeeeeeh
+${CARCH:+setarch "$set_arch"} systemd-nspawn "${nspawn_args[@]}" "$@"
+
+RET=$?
+
+umount "${working_dir}/proc"
+
+exit $RET