diff --git a/update_chroot b/update_chroot index f3897c8832..d6d0367a52 100755 --- a/update_chroot +++ b/update_chroot @@ -95,7 +95,7 @@ if [ "${FLAGS_skip_toolchain_update}" -eq "${FLAGS_FALSE}" ]; then TOOLCHAIN_FLAGS+=( --nousepkg ) fi # Expand the path before sudo, as root doesn't have the same path magic. - sudo $(type -p cros_setup_toolchains) "${TOOLCHAIN_FLAGS[@]}" + sudo -E $(type -p cros_setup_toolchains) "${TOOLCHAIN_FLAGS[@]}" fi # Build cros_workon packages when they are changed.