Merge lp:~raharper/curtin/trunk.snappy-dd into lp:~curtin-dev/curtin/trunk
| Status: | Merged |
|---|---|
| Approved by: | Ryan Harper on 2017-03-23 |
| Approved revision: | 422 |
| Merged at revision: | 479 |
| Proposed branch: | lp:~raharper/curtin/trunk.snappy-dd |
| Merge into: | lp:~curtin-dev/curtin/trunk |
| Diff against target: |
738 lines (+485/-38) 11 files modified
curtin/block/__init__.py (+19/-10) curtin/commands/block_meta.py (+16/-4) curtin/commands/curthooks.py (+85/-0) curtin/util.py (+3/-2) examples/tests/ubuntu_core.yaml (+13/-0) tests/unittests/test_commands_block_meta.py (+104/-1) tests/unittests/test_curthooks.py (+144/-0) tests/vmtests/__init__.py (+26/-12) tests/vmtests/releases.py (+17/-0) tests/vmtests/test_ubuntu_core.py (+46/-0) tools/launch (+12/-9) |
| To merge this branch: | bzr merge lp:~raharper/curtin/trunk.snappy-dd |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Scott Moser | 2017-02-17 | Approve on 2017-03-22 | |
|
Review via email:
|
|||
Commit Message
Add support for installing Ubuntu-Core 16 images
UC16 images are compressed-xz raw images which need to be written
directly to disk. Introduce new source types dd-{xz,gz,bz2,raw}
and pass them to block_meta write_image_
find_root_dev to look for UC16 specific paths to identify the root
partition.
UC16 images are generally not modifiable and do not contain dpkg/apt,
therefore curtin handles curthooks on UC16 differently. Add a new
top-level 'cloudconfig' key which is modeled after write_files to be used
by maas to inject cloud-init into a UC16 image; curtin appends these
files out in the "writable" partition of UC16 which will be mounted up on
top of the root partition. Add an initial vmtest (disabled by default) as
UC16 images are not yet available via maas streams data.
Description of the Change
Add support for installing Ubuntu-Core 16 images
UC16 images are compressed-xz raw images which need to be written
directly to disk. Introduce new source types dd-{xz,gz,bz2,raw}
and pass them to block_meta write_image_
find_root_dev to look for UC16 specific paths to identify the root
partition.
UC16 images are generally not modifiable and do not contain dpkg/apt,
therefore curtin handles curthooks on UC16 differently. Add a new
top-level 'cloudconfig' key which is modeled after write_files to be used
by maas to inject cloud-init into a UC16 image; curtin appends these
files out in the "writable" partition of UC16 which will be mounted up on
top of the root partition. Add an initial vmtest; currently a hack since
UC16 images are not yet available via maas streams data.
- 405. By Ryan Harper on 2017-02-17
-
Fix flake8 issues
- 406. By Ryan Harper on 2017-03-21
-
refactor snappy_curthooks; add handle_cloudconfig hook
- 407. By Ryan Harper on 2017-03-21
-
merge from smoser snappy branch
- 408. By Ryan Harper on 2017-03-21
-
remove testing tools
- 409. By Ryan Harper on 2017-03-22
-
unittest: block_meta.
meta_simple and write_image_to_disk path - 410. By Ryan Harper on 2017-03-22
-
revert smtar changes
- 411. By Ryan Harper on 2017-03-22
-
Update supported source types and extractor mappings
- 412. By Ryan Harper on 2017-03-22
-
Remove debugging from block_meta
- 413. By Ryan Harper on 2017-03-22
-
Rename Snappy->UbuntuCore; Add UbuntuCore curthooks unittets
- 414. By Ryan Harper on 2017-03-22
-
unittest: add ubuntu-
core-network- config - 415. By Ryan Harper on 2017-03-22
-
unittest: ubuntu-core check remove cloud-init.disabled if present
- 416. By Ryan Harper on 2017-03-22
-
unittest: handle_cloudconfig invalid config
- 417. By Ryan Harper on 2017-03-22
-
Drop useless S (--sparse) flag on extraction; add unittest for dd-tgz cmdline
- 418. By Ryan Harper on 2017-03-22
-
Use 'systemd-
data/var/ lib/snapd' to confirm target is Ubuntu-Core - 419. By Ryan Harper on 2017-03-22
-
remove added whitespace
- 420. By Ryan Harper on 2017-03-22
-
merge from trunk
- 421. By Ryan Harper on 2017-03-22
-
vmtest: disable ubuntu-core until images are published in simplestreams
- 422. By Ryan Harper on 2017-03-22
-
Address remaining review comments
| Ryan Harper (raharper) wrote : | # |
Applied changes, running vmtest for regression checks here:
https:/

just make those changes and i think its good.