summaryrefslogtreecommitdiff
path: root/src/chroot-tools
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2016-04-15 17:51:10 -0400
committerLuke Shumaker <lukeshu@sbcglobal.net>2016-04-15 17:51:10 -0400
commit9242f5ff67d9efd227e985063e5ff0ea91269d2e (patch)
tree95d7e7e4afea01dcafa655e10a74d3546d83ecaf /src/chroot-tools
parentbb819d5ef6c6dc68da524de07991eae2a2c3a3af (diff)
librechroot: run mkarchroot in its own mount namespace.
Fixes https://labs.parabola.nu/issues/667
Diffstat (limited to 'src/chroot-tools')
-rwxr-xr-xsrc/chroot-tools/librechroot2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/chroot-tools/librechroot b/src/chroot-tools/librechroot
index ba722c7..a688b85 100755
--- a/src/chroot-tools/librechroot
+++ b/src/chroot-tools/librechroot
@@ -66,7 +66,7 @@ arch-nspawn() {
mkarchroot() {
local copydir=$1; shift
local pkgs=("$@")
- "$_mkarchroot" \
+ unshare -m "$_mkarchroot" \
${arch_nspawn_flags+"${arch_nspawn_flags[@]}"} \
"$copydir" \
"${pkgs[@]}"