]> git.wh0rd.org Git - home.git/commitdiff
chroot: clear out vars set by CrOS
authorMike Frysinger <vapier@gentoo.org>
Sun, 16 Feb 2014 11:57:30 +0000 (06:57 -0500)
committerMike Frysinger <vapier@gentoo.org>
Sun, 16 Feb 2014 11:57:30 +0000 (06:57 -0500)
.bin/custom-chroot

index c6e3164041b9c75eb84c6506c8f06b87bf95e103..324405cc915c28fc20f2c8adec911a80bb17d788 100755 (executable)
@@ -134,6 +134,8 @@ main() {
                fi
        fi
 
+       # Doubtful these settings we want to leak into the chroot.
+       unset ROOT PORTAGE_CONFIGROOT LD_LIBRARY_PATH
        unset LS_COLORS # format changes over time
        [[ $# -eq 0 ]] && set -- env HOME=/root /bin/bash -l
        exec \