Fix #300: Properly unset environment in chroot (#302)

This commit is contained in:
Oliver Smith 2017-07-30 22:08:36 +00:00 committed by GitHub
parent 61f35c080d
commit fe385cad6d
1 changed files with 1 additions and 1 deletions

View File

@ -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" +