bdisk/bdisk/bdisk.py

23 lines
913 B
Python
Raw Normal View History

#!/bin/env python3
2016-11-21 03:41:22 -05:00
import host
import prep
import bchroot
import build
2016-11-21 03:41:22 -05:00
# we need to:
# 9.) build.genImg (TODO)- build the squashed image, etc. see will_it_blend in old bdisk
2016-11-28 02:56:15 -05:00
# 9.5) copy the files also in the same script. after the commented-out mtree-generation
2016-11-21 03:41:22 -05:00
#
# we also need to figure out how to implement "mentos" (old bdisk) like functionality, letting us reuse an existing chroot install if possible to save time for future builds.
# if not, though, it's no big deal.
if __name__ == '__main__':
conf = host.parseConfig(host.getConfig())[1]
prep.dirChk(conf)
prep.buildChroot(conf['build'])
2016-11-28 02:56:15 -05:00
prep.prepChroot(conf['build'], conf['bdisk'])
arch = conf['build']['arch']
for a in arch:
bchroot.chroot(conf['build']['chrootdir'] + '/root.' + a, 'bdisk.square-r00t.net')
bchroot.chrootUnmount(conf['build']['chrootdir'] + '/root.' + a)
2016-11-28 02:56:15 -05:00
prep.postChroot(conf['build'])