def _bootstrap_deb(root, arch, flavor, repo_url=None, static_qemu=None, pkgs=None, exclude_pkgs=None):
 if (repo_url is None):
  repo_url = 'http://ftp.debian.org/debian/'
 deb_args = ((((['debootstrap', '--foreign', '--arch', _cmd_quote(arch), '--include'] + pkgs) + ['--exclude']) + exclude_pkgs) + [_cmd_quote(flavor), _cmd_quote(root), _cmd_quote(repo_url)])
 __salt__['cmd.run'](deb_args, python_shell=False)
 __salt__['cmd.run']('cp {qemu} {root}/usr/bin/'.format(qemu=_cmd_quote(static_qemu), root=_cmd_quote(root)))
 env = {'DEBIAN_FRONTEND': 'noninteractive', 'DEBCONF_NONINTERACTIVE_SEEN': 'true', 'LC_ALL': 'C', 'LANGUAGE': 'C', 'LANG': 'C', 'PATH': '/sbin:/bin:/usr/bin'}
 __salt__['cmd.run']('chroot {root} /debootstrap/debootstrap --second-stage'.format(root=_cmd_quote(root)), env=env)
 __salt__['cmd.run']('chroot {root} dpkg --configure -a'.format(root=_cmd_quote(root)), env=env)

def _bootstrap_deb ( root , arch , flavor , repo_url = None , static_qemu = None , pkgs = None , exclude_pkgs = None ) : if ( repo_url is None ) : repo_url = 'http://ftp.debian.org/debian/' deb_args = ( ( ( ( [ 'debootstrap' , '--foreign' , '--arch' , _cmd_quote ( arch ) , '--include' ] + pkgs ) + [ '--exclude' ] ) + exclude_pkgs ) + [ _cmd_quote ( flavor ) , _cmd_quote ( root ) , _cmd_quote ( repo_url ) ] ) __salt__ [ 'cmd.run' ] ( deb_args , python_shell = False ) __salt__ [ 'cmd.run' ] ( 'cp {qemu} {root}/usr/bin/' . format ( qemu = _cmd_quote ( static_qemu ) , root = _cmd_quote ( root ) ) ) env = { 'DEBIAN_FRONTEND' : 'noninteractive' , 'DEBCONF_NONINTERACTIVE_SEEN' : 'true' , 'LC_ALL' : 'C' , 'LANGUAGE' : 'C' , 'LANG' : 'C' , 'PATH' : '/sbin:/bin:/usr/bin' } __salt__ [ 'cmd.run' ] ( 'chroot {root} /debootstrap/debootstrap --second-stage' . format ( root = _cmd_quote ( root ) ) , env = env ) __salt__ [ 'cmd.run' ] ( 'chroot {root} dpkg --configure -a' . format ( root = _cmd_quote ( root ) ) , env = env )
bootstrap an image using the debian tools root the root of the image to install to .