aboutsummaryrefslogtreecommitdiff
path: root/linaro_image_tools/media_create/chroot_utils.py
diff options
context:
space:
mode:
authorGuilherme Salgado <guilherme.salgado@linaro.org>2011-07-25 13:48:37 -0300
committerGuilherme Salgado <guilherme.salgado@linaro.org>2011-07-25 13:48:37 -0300
commit4bdb15bc8c1e4c34345e8d23580315c6dc7cc9aa (patch)
treefd4c2bd1f0fc6eb4d3de14edbe28bc61ae4e1ee1 /linaro_image_tools/media_create/chroot_utils.py
parentb80a24ff1f47c7017f8a4a6a86859be0a50e410c (diff)
A new contextmanager to use when you want to mount a partition, copy something to it and umount when done
Diffstat (limited to 'linaro_image_tools/media_create/chroot_utils.py')
-rw-r--r--linaro_image_tools/media_create/chroot_utils.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/linaro_image_tools/media_create/chroot_utils.py b/linaro_image_tools/media_create/chroot_utils.py
index 7655d0c..2196842 100644
--- a/linaro_image_tools/media_create/chroot_utils.py
+++ b/linaro_image_tools/media_create/chroot_utils.py
@@ -93,6 +93,8 @@ def install_packages(chroot_dir, tmp_dir, *packages):
prepare_chroot(chroot_dir, tmp_dir)
try:
+ # TODO: Use the partition_mounted() contextmanager here and get rid of
+ # mount_chroot_proc() altogether.
mount_chroot_proc(chroot_dir)
print "-" * 60
print "Installing (apt-get) %s in target rootfs." % " ".join(packages)