Add support for tar.xz images
Bug #1843266 reported by
Lee Trager
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
Wishlist
|
Unassigned | ||
curtin |
Fix Released
|
Medium
|
Unassigned |
Bug Description
Some vendors have begun to provide root.tar.xz images[1]. As MAAS/Curtin gains support for these images MAAS/Curtin should add the ability to deploy root.tar.xz. Ideally MAAS/Curtin should be able to deploy a tar using any compression type supported by Python's tar library using the following.
with tarfile.
tar.
[1] https:/
Related branches
~ltrager/maas:lp1843266
Merged
into
maas:master
- Blake Rouse (community): Approve
- MAAS Lander: Approve
-
Diff: 213 lines (+64/-10)10 files modifiedsrc/maasserver/api/boot_resources.py (+4/-3)
src/maasserver/enum.py (+4/-0)
src/maasserver/forms/__init__.py (+4/-0)
src/maasserver/forms/tests/test_bootresource.py (+3/-1)
src/maasserver/migrations/maasserver/0199_bootresource_tbz_txz.py (+23/-0)
src/maasserver/models/bootresourceset.py (+3/-1)
src/maasserver/preseed.py (+1/-1)
src/maasserver/tests/test_preseed.py (+2/-2)
src/provisioningserver/drivers/osystem/__init__.py (+6/-2)
src/provisioningserver/drivers/osystem/tests/test_base.py (+14/-0)
~raharper/curtin:fix/support-txz-tbz
Merged
into
curtin:master
- Server Team CI bot: Approve (continuous-integration)
- Scott Moser (community): Approve
-
Diff: 62 lines (+40/-2)2 files modifiedcurtin/util.py (+3/-2)
tests/unittests/test_util.py (+37/-0)
Changed in maas: | |
milestone: | none → next |
status: | Triaged → Fix Committed |
Changed in maas: | |
milestone: | next → 2.7.0b1 |
Changed in maas: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
It seems like this might "just work" right now for curtin. The support for xz compression is already in `helpers/smtar`. smtar is used via `extract_ root_tgz_ url`.
It looks like maybe we would want sanitize_source to contain 'txz' (and might as well add tbz) in curtin/util.py .