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:32:22 +0200
commit82b5e36defccaf864686c8d93eba3481cb918c01 (patch)
tree85dd547880836cca36031d0e4b763e9a669e27e7
parenta1ca197bc99c2d5c2977630cc4c9dbfd5461d9c1 (diff)
Hack to fix building inside LXC containers
-rw-r--r--src/arch-nspawn.in10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/arch-nspawn.in b/src/arch-nspawn.in
index 8fcdead..12ad598 100644
--- a/src/arch-nspawn.in
+++ b/src/arch-nspawn.in
@@ -140,4 +140,14 @@ else
set_arch="${CARCH}"
fi
+mkdir -p "${working_dir}/proc"
+mount proc "${working_dir}/proc" -t proc -o nosuid,noexec,nodev
+
+# Eeeeeeh
exec ${CARCH:+setarch "$set_arch"} systemd-nspawn "${nspawn_args[@]}" "$@"
+
+RET=$?
+
+umount "${working_dir}/proc"
+
+exit $RET