From fe385cad6d9179421c50f615ff5076d15fe832e6 Mon Sep 17 00:00:00 2001 From: Oliver Smith Date: Sun, 30 Jul 2017 22:08:36 +0000 Subject: [PATCH] Fix #300: Properly unset environment in chroot (#302) --- pmb/chroot/root.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pmb/chroot/root.py b/pmb/chroot/root.py index a4e717e9..056ea5a2 100644 --- a/pmb/chroot/root.py +++ b/pmb/chroot/root.py @@ -65,7 +65,7 @@ def root(args, cmd, suffix="native", working_dir="/", log=True, " ".join(cmd)) cmd_full = ["sudo", executables["sh"], "-c", - "unset $(env | cut -d= -f1);" + # unset all + "env -i" + # unset all " CHARSET=UTF-8" + " PATH=" + pmb.config.chroot_path + " SHELL=/bin/ash" +