mirror of
https://github.com/kevingruesser/bootstrap-vz.git
synced 2025-08-22 09:50:37 +00:00
Merge pull request #441 from octivi/minimize_size_qemu
qemu-img also supports shrinking raw and qcow2 formats
This commit is contained in:
commit
25ec499868
2 changed files with 3 additions and 3 deletions
|
@ -21,7 +21,7 @@ footprint:
|
|||
(only applicable when using vmdk backing). The tool is part of the
|
||||
`VMWare Workstation <https://my.vmware.com/web/vmware/info/slug/desktop_end_user_computing/vmware_workstation/10_0>`__
|
||||
package.
|
||||
- `qemu-img` (only applicaple when using vmdk or vdi backing). This
|
||||
- `qemu-img` (only applicaple when using vmdk, vdi, raw or qcow2 backing). This
|
||||
tool is part of the `QEMU emulator <https://www.qemu.org/>`__.
|
||||
|
||||
- Tell apt to only download specific language files. See the
|
||||
|
|
|
@ -26,8 +26,8 @@ def validate_manifest(data, validator, error):
|
|||
shrink_type = get_shrink_type(data['plugins'])
|
||||
if shrink_type == 'vmware-vdiskmanager' and data['volume']['backing'] != 'vmdk':
|
||||
error('Can only shrink vmdk images with vmware-vdiskmanager', ['plugins', 'minimize_size', 'shrink'])
|
||||
if shrink_type == 'qemu-img' and data['volume']['backing'] not in ('vmdk', 'vdi'):
|
||||
error('Can only shrink vmdk and vdi images with qemu-img', ['plugins', 'minimize_size', 'shrink'])
|
||||
if shrink_type == 'qemu-img' and data['volume']['backing'] not in ('vmdk', 'vdi', 'raw', 'qcow2'):
|
||||
error('Can only shrink vmdk, vdi, raw and qcow2 images with qemu-img', ['plugins', 'minimize_size', 'shrink'])
|
||||
|
||||
|
||||
def resolve_tasks(taskset, manifest):
|
||||
|
|
Loading…
Add table
Reference in a new issue