diff options
author | Luke Shumaker <lukeshu@sbcglobal.net> | 2016-04-15 17:51:10 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2016-04-15 17:51:10 -0400 |
commit | 9242f5ff67d9efd227e985063e5ff0ea91269d2e (patch) | |
tree | 95d7e7e4afea01dcafa655e10a74d3546d83ecaf /src/chroot-tools/librechroot | |
parent | bb819d5ef6c6dc68da524de07991eae2a2c3a3af (diff) |
librechroot: run mkarchroot in its own mount namespace.
Fixes https://labs.parabola.nu/issues/667
Diffstat (limited to 'src/chroot-tools/librechroot')
-rwxr-xr-x | src/chroot-tools/librechroot | 2 |
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[@]}" |