Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTasos Sahanidis <tasos@tasossah.com>2024-03-15 17:32:22 +0200
committerTasos Sahanidis <tasos@tasossah.com>2024-08-25 04:02:19 +0300
commitcfe9e9b60140de79d7a4d637cb3ecca179f791bc (patch)
treef73ccb063be2a70f49c0e1555f1a76c06e987de1 /src
parentdeffc1b87e86fffa8e4758a76a1912c6c8f69a85 (diff)
Hack to fix building inside LXC containersfix-proc-mount-in-lxc
Diffstat (limited to 'src')
-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 54e474f..cb3c317 100644
--- a/src/arch-nspawn.in
+++ b/src/arch-nspawn.in
@@ -147,4 +147,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