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-04-23 16:02:48 +0300
commit92d8d12325c58493ad32a4e1855dc87163e2b8f9 (patch)
treecc45a52c9d77508597d70761c01c81ad7be60466
parent2dc7a161a09518edae9e04a77fca569460d6a560 (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