Merge pull request #86 from CanonicalLtd/error_on_no_curtin

Ensure install progress fails with missing curtin
This commit is contained in:
raharper 2015-10-20 16:25:17 -05:00
commit 453ddf473b
1 changed files with 3 additions and 0 deletions

View File

@ -139,6 +139,9 @@ def curtin_find_curtin():
if os.path.exists(curtin): if os.path.exists(curtin):
log.debug('curtin found at: {}'.format(curtin)) log.debug('curtin found at: {}'.format(curtin))
return curtin return curtin
# This ensures we fail when we attempt to run curtin
# but it's not present
return '/bin/false'
def curtin_find_install_path(): def curtin_find_install_path():