def _bootstrap_arch(name, **kwargs):
 if (not salt.utils.which('pacstrap')):
  raise CommandExecutionError('pacstrap not found, is the arch-install-scripts package installed?')
 dst = _make_container_root(name)
 cmd = 'pacstrap -c -d {0} base'.format(dst)
 ret = __salt__['cmd.run_all'](cmd, python_shell=False)
 if (ret['retcode'] != 0):
  _build_failed(dst, name)
 return ret

def _bootstrap_arch ( name , ** kwargs ) : if ( not salt . utils . which ( 'pacstrap' ) ) : raise CommandExecutionError ( 'pacstrap not found, is the arch-install-scripts package installed?' ) dst = _make_container_root ( name ) cmd = 'pacstrap -c -d {0} base' . format ( dst ) ret = __salt__ [ 'cmd.run_all' ] ( cmd , python_shell = False ) if ( ret [ 'retcode' ] != 0 ) : _build_failed ( dst , name ) return ret
bootstrap an arch linux container .