index : devtools32 | |
Archlinux32 fork of devtools | gitolite user |
summaryrefslogtreecommitdiff |
author | Tasos Sahanidis <tasos@tasossah.com> | 2024-03-15 17:32:22 +0200 |
---|---|---|
committer | Tasos Sahanidis <tasos@tasossah.com> | 2024-03-15 17:38:12 +0200 |
commit | c9390d3301633a3ac7603ffe234ea0fe78f9f566 (patch) | |
tree | b1bf5a9c11cfd5ea98af907b0f5a6c3a6d9d6bff | |
parent | a1ca197bc99c2d5c2977630cc4c9dbfd5461d9c1 (diff) |
-rw-r--r-- | src/arch-nspawn.in | 12 |
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 |