Merge lp:~salgado/linaro-image-tools/bug-815885 into lp:linaro-image-tools/11.11
Proposed by
Guilherme Salgado
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | James Westby | ||||
Approved revision: | 386 | ||||
Merged at revision: | 388 | ||||
Proposed branch: | lp:~salgado/linaro-image-tools/bug-815885 | ||||
Merge into: | lp:linaro-image-tools/11.11 | ||||
Diff against target: |
337 lines (+136/-74) 6 files modified
linaro_image_tools/media_create/android_boards.py (+2/-0) linaro_image_tools/media_create/boards.py (+17/-22) linaro_image_tools/media_create/chroot_utils.py (+2/-0) linaro_image_tools/media_create/partitions.py (+35/-0) linaro_image_tools/media_create/rootfs.py (+31/-45) linaro_image_tools/media_create/tests/test_media_create.py (+49/-7) |
||||
To merge this branch: | bzr merge lp:~salgado/linaro-image-tools/bug-815885 | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
James Westby (community) | Approve | ||
Review via email: mp+69133@code.launchpad.net |
Description of the change
This branch adds a context manager that mounts/umounts a given partition.
This provides a simple API that will mount a partition and ensure it is
umounted once we're done.
To post a comment you must log in.
Hi,
Thanks for this.
I don't like that it will mask errors that happen while
the content manager is in use with errors from unmounting, but
I think that's better than the bugs that the current
implementation has.
Thanks,
James