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')
|
system_cleaning = Phase('System cleaning', 'Removing sensitive data, temporary files and other leftovers')
|
||||||
volume_unmounting = Phase('Volume unmounting', 'Unmounting the bootstrap volume')
|
volume_unmounting = Phase('Volume unmounting', 'Unmounting the bootstrap volume')
|
||||||
image_registration = Phase('Image registration', 'Uploading/Registering with the provider')
|
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')
|
cleaning = Phase('Cleaning', 'Removing temporary files')
|
||||||
|
|
||||||
order = [preparation,
|
order = [preparation,
|
||||||
|
@ -21,6 +20,5 @@ order = [preparation,
|
||||||
system_cleaning,
|
system_cleaning,
|
||||||
volume_unmounting,
|
volume_unmounting,
|
||||||
image_registration,
|
image_registration,
|
||||||
image_conversion,
|
|
||||||
cleaning,
|
cleaning,
|
||||||
]
|
]
|
||||||
|
|
|
@ -1,11 +1,10 @@
|
||||||
from base import Task
|
from base import Task
|
||||||
from common import phases
|
from common import phases
|
||||||
from common.tasks.filesystem import DeleteMountDir
|
|
||||||
|
|
||||||
|
|
||||||
class ConvertImage(Task):
|
class ConvertImage(Task):
|
||||||
description = 'Convert raw image'
|
description = 'Converting raw image'
|
||||||
phase = phases.image_conversion
|
phase = phases.image_registration
|
||||||
|
|
||||||
def run(self, info):
|
def run(self, info):
|
||||||
from common.tools import log_check_call
|
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])
|
log_check_call(['/usr/bin/qemu-img', 'convert', '-O', info.manifest.plugins['convert_image']['format'], info.loopback_file, converted_file])
|
||||||
import os
|
import os
|
||||||
os.remove(info.loopback_file)
|
os.remove(info.loopback_file)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue