The chroot management stuff could be cleaned up if we were able to import other modules and generally be extracted from cros_build_lib. It gets used from cros_sdk and the builders.
Also check callers and make the error return more consistent while refactoring this. There is currently some confusion about whether returning False or raising an exception is the right way to indicate an error.
Comment 1 by bmgordon@chromium.org
, Feb 6 2018