Merge lp:~sil2100/ubuntu-cdimage/cdimage-to-livefs-map into lp:ubuntu-cdimage
Status: | Merged |
---|---|
Merged at revision: | 1948 |
Proposed branch: | lp:~sil2100/ubuntu-cdimage/cdimage-to-livefs-map |
Merge into: | lp:ubuntu-cdimage |
Diff against target: |
474 lines (+224/-58) 5 files modified
etc/cdimage-to-livecd-rootfs-map (+13/-0) lib/cdimage/config.py (+64/-0) lib/cdimage/livefs.py (+18/-44) lib/cdimage/tests/test_config.py (+100/-0) lib/cdimage/tests/test_livefs.py (+29/-14) |
To merge this branch: | bzr merge lp:~sil2100/ubuntu-cdimage/cdimage-to-livefs-map |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Dimitri John Ledkov (community) | Approve | ||
Ubuntu CD Image Team | Pending | ||
Review via email: mp+404310@code.launchpad.net |
Commit message
Add a etc/cdimage-
Description of the change
Add a etc/cdimage-
This was proposed by xnox when we originally discussed the generic image changes. I personally HATE that right now we have all those weird differences between ubuntu-cdimage and live-build SUBARCH, PROJECT and SUBPROJECT definitions. In my mind, since we own both projects, we should simply be consistent across both projects and always plan in such a way to not confuse people by doing some translations from like one subarch to another. But I know all this requires refactoring of both cdimage and livecd-rootfs.
What I hate even more is implicitness of such mappings. I am a fan of code that's consistent and easy to read, without having to know specific hidden 'quirks'. This is why today I decided to go on with Dimitri's idea of having an explicit cdimage -> live mapping file where any custom mappings like these can go. This way new developers will know about what differences are and why (as we can leave comments for those there).
I added some unit tests for the new functionality which now passes and made sure existing test also pass. Well, the ones that should pass. There are some unrelated unit test failures which I'd like to fix with some other MP.
Please note that this was written in a heat of the moment in a very fast pace, so it might not be perfect. So a review is more than welcome!