Install iconograph into image.
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user