Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/src/arch-nspawn.in
diff options
context:
space:
mode:
Diffstat (limited to 'src/arch-nspawn.in')
-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