Install iconograph into image.

This commit is contained in:
Ian Gulliver
2016-03-30 14:49:17 -07:00
parent facafa5876
commit 58300fd7e6

View File

@@ -48,12 +48,14 @@ class ImageBuilder(object):
'debconf', 'debconf',
'devscripts', 'devscripts',
'dialog', 'dialog',
'git',
'gnupg', 'gnupg',
'isc-dhcp-client', 'isc-dhcp-client',
'locales', 'locales',
'nano', 'nano',
'net-tools', 'net-tools',
'iputils-ping', 'iputils-ping',
'python3-openssl',
'sudo', 'sudo',
'user-setup', 'user-setup',
'wget', 'wget',
@@ -136,6 +138,13 @@ class ImageBuilder(object):
'apt-get', 'apt-get',
'clean') 'clean')
def _InstallIconograph(self, chroot_path):
self._ExecChroot(
chroot_path,
'git',
'clone',
'https://github.com/robot-tools/iconograph.git')
def _Squash(self, chroot_path, union_path): def _Squash(self, chroot_path, union_path):
self._Exec( self._Exec(
'mksquashfs', 'mksquashfs',
@@ -159,6 +168,7 @@ class ImageBuilder(object):
chroot_path = self._Debootstrap(root) chroot_path = self._Debootstrap(root)
union_path = self._CreateUnion(root) union_path = self._CreateUnion(root)
self._InstallPackages(chroot_path) self._InstallPackages(chroot_path)
self._InstallIconograph(chroot_path)
if FLAGS.shell: if FLAGS.shell:
self._Exec('bash') self._Exec('bash')
self._Squash(chroot_path, union_path) self._Squash(chroot_path, union_path)