Skip to content

Commit

Permalink
Update boximg chain.
Browse files Browse the repository at this point in the history
  • Loading branch information
alenz33 committed Apr 2, 2015
1 parent ec06b5f commit 47c4f14
Showing 1 changed file with 23 additions and 2 deletions.
25 changes: 23 additions & 2 deletions etc/chains/frm2/boximg.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,14 @@

steps.imgfile = Step('conduct.SystemCall',
description='Create empty image file',
command='dcfldd if=/dev/zero of={steps.tmpdir.tmpdir}/{chain.imgname}.img bs=1048576 count={steps.imgdef.config[size]}')
command='dcfldd if=/dev/zero '
'of={steps.tmpdir.tmpdir}/{chain.imgname}.img '
'bs=1048576 count={steps.imgdef.config[size]}')

steps.partition = Step('conduct.Partitioning',
description='Partition image file',
dev='{steps.tmpdir.tmpdir}/{chain.imgname}.img',
partitions=[3,5])
partitions=[1020,1020])

steps.devmap = Step('conduct.DevMapper',
description='Map new image partitions to device files',
Expand Down Expand Up @@ -82,4 +84,23 @@
arch='i386',
destdir='{steps.tmpdir.tmpdir}/mount')

# replace by cp + sed steps
steps.aptmain = Step('conduct.SystemCall',
description='Add main apt repo',
command='echo "deb http://ftp.de.debian.org/debian/ '
'{chain.distribution} main" >> '
'{steps.mount.mountpoint}/etc/apt/sources.list')

# replace by cp + sed steps
steps.aptbackp = Step('conduct.SystemCall',
description='Add backport apt repo',
command='echo "deb http://ftp.de.debian.org/debian/ '
'{chain.distribution}-backports main" >> '
'{steps.mount.mountpoint}/etc/apt/sources.list')

steps.aptupdate = Step('conduct.ChrootedSystemCall',
description='Update package lists',
command='apt-get update',
chrootdir='{steps.mount.mountpoint}')


0 comments on commit 47c4f14

Please sign in to comment.