]> git.wh0rd.org - home.git/commitdiff
chroot: unshare sysv ipc too
authorMike Frysinger <vapier@gentoo.org>
Wed, 10 Sep 2014 19:33:27 +0000 (12:33 -0700)
committerMike Frysinger <vapier@gentoo.org>
Wed, 10 Sep 2014 19:33:27 +0000 (12:33 -0700)
.bin/custom-chroot

index 8a3fc619c763c8d0eaad824284082d63db06d6e1..4a5045d94af859e725a3f97ce3ed6bcd44f62734 100755 (executable)
@@ -8,6 +8,7 @@ bootstrap() {
                if type -P unshare >&/dev/null ; then
                        uargs=( -m )
                        unshare -u -- true >&/dev/null && uargs+=( -u )
                if type -P unshare >&/dev/null ; then
                        uargs=( -m )
                        unshare -u -- true >&/dev/null && uargs+=( -u )
+                       unshare -i -- true >&/dev/null && uargs+=( -i )
                        unshare -p -- true >&/dev/null && uargs+=( -p -f --mount-proc )
                        UNSHARE=true exec unshare "${uargs[@]}" -- "$0" "$@"
                fi
                        unshare -p -- true >&/dev/null && uargs+=( -p -f --mount-proc )
                        UNSHARE=true exec unshare "${uargs[@]}" -- "$0" "$@"
                fi