Merge lp:~sil2100/ubuntu-system-image/server_uncompressed-initrd into lp:ubuntu-system-image/server
| Status: | Merged | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Merged at revision: | 284 | ||||||||
| Proposed branch: | lp:~sil2100/ubuntu-system-image/server_uncompressed-initrd | ||||||||
| Merge into: | lp:ubuntu-system-image/server | ||||||||
| Diff against target: |
272 lines (+177/-12) 3 files modified
lib/systemimage/generators.py (+2/-1) lib/systemimage/tests/test_tools.py (+72/-0) lib/systemimage/tools.py (+103/-11) |
||||||||
| To merge this branch: | bzr merge lp:~sil2100/ubuntu-system-image/server_uncompressed-initrd | ||||||||
| Related bugs: |
|
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Barry Warsaw (community) | 2016-02-08 | Approve on 2016-02-15 | |
|
Review via email:
|
|||
Commit Message
Add support for uncompressed/
Description of the Change
Add support for uncompressed/
This merge basically has 3 fixes, all related more or less to eachother - all required to fix repacking of keyrings for devices such as krillin or arale.
| Łukasz Zemczak (sil2100) wrote : | # |
| Barry Warsaw (barry) wrote : | # |
Just a few thoughts.
| Łukasz Zemczak (sil2100) wrote : | # |
Hey Barry! Thanks for the code-check. I didn't use subprocess.DEVNULL for two reasons: first, I didn't know about it, and second - the existing code was using open(os.devnull). Would have to change it in the whole testcase then - which we can do of course.
| Barry Warsaw (barry) wrote : | # |
On Feb 12, 2016, at 03:10 PM, Łukasz Zemczak wrote:
>Hey Barry! Thanks for the code-check. I didn't use subprocess.DEVNULL for two
>reasons: first, I didn't know about it, and second - the existing code was
>using open(os.devnull). Would have to change it in the whole testcase then -
>which we can do of course.
Reducing tech-debt would make for a nice sprint task! :)
| Łukasz Zemczak (sil2100) wrote : | # |
Anyway, I'll leave it as is right now since from what I see there's no subprocess.DEVNULL in Python 2.7, while system-image is currently written to be both 2.7 and 3 compatible. os.devnull seems to be the safe choice here.
That being said: the branch in overall got tested by Bhushan Shah (bshah) who reproduced the original issue and said it helped. If you could +1 the code in overall I would gladly merge it in.
- 290. By Łukasz Zemczak on 2016-02-17
-
Changes as per Barry's comments - make the buffer size variable a global constant and use assertIsNone() when it makes sense.

Now it's ready for review basically.