mirror of
https://github.com/kevingruesser/bootstrap-vz.git
synced 2025-10-07 17:40:30 +00:00
Remove image conversion phase.
Maybe image_registration should be renamed?
This commit is contained in:
parent
b5c5acf5b1
commit
e6ec040b27
2 changed files with 3 additions and 7 deletions
|
@ -9,7 +9,6 @@ system_modification = Phase('System modification', 'Installing software, modifyi
|
|||
system_cleaning = Phase('System cleaning', 'Removing sensitive data, temporary files and other leftovers')
|
||||
volume_unmounting = Phase('Volume unmounting', 'Unmounting the bootstrap volume')
|
||||
image_registration = Phase('Image registration', 'Uploading/Registering with the provider')
|
||||
image_conversion = Phase('Image conversion', 'Conversion/Compression of the image result file')
|
||||
cleaning = Phase('Cleaning', 'Removing temporary files')
|
||||
|
||||
order = [preparation,
|
||||
|
@ -21,6 +20,5 @@ order = [preparation,
|
|||
system_cleaning,
|
||||
volume_unmounting,
|
||||
image_registration,
|
||||
image_conversion,
|
||||
cleaning,
|
||||
]
|
||||
|
|
|
@ -1,11 +1,10 @@
|
|||
from base import Task
|
||||
from common import phases
|
||||
from common.tasks.filesystem import DeleteMountDir
|
||||
|
||||
|
||||
class ConvertImage(Task):
|
||||
description = 'Convert raw image'
|
||||
phase = phases.image_conversion
|
||||
description = 'Converting raw image'
|
||||
phase = phases.image_registration
|
||||
|
||||
def run(self, info):
|
||||
from common.tools import log_check_call
|
||||
|
@ -13,4 +12,3 @@ class ConvertImage(Task):
|
|||
log_check_call(['/usr/bin/qemu-img', 'convert', '-O', info.manifest.plugins['convert_image']['format'], info.loopback_file, converted_file])
|
||||
import os
|
||||
os.remove(info.loopback_file)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue