summaryrefslogtreecommitdiff
path: root/morphlib/plugins/tarball-systembuilder_plugin.py
diff options
context:
space:
mode:
Diffstat (limited to 'morphlib/plugins/tarball-systembuilder_plugin.py')
-rw-r--r--morphlib/plugins/tarball-systembuilder_plugin.py8
1 files changed, 1 insertions, 7 deletions
diff --git a/morphlib/plugins/tarball-systembuilder_plugin.py b/morphlib/plugins/tarball-systembuilder_plugin.py
index fecf30a6..5975a5c3 100644
--- a/morphlib/plugins/tarball-systembuilder_plugin.py
+++ b/morphlib/plugins/tarball-systembuilder_plugin.py
@@ -51,13 +51,7 @@ class RootfsTarballBuilder(SystemKindBuilder): # pragma: no cover
factory_path = mount_point
self.unpack_strata(factory_path)
self.create_fstab(factory_path)
- a = self.new_artifact(
- self.artifact.source.morphology['name']+'-kernel')
- with self.local_artifact_cache.put(a) as dest:
- with open(os.path.join(factory_path,
- 'boot',
- 'zImage')) as kernel:
- shutil.copyfileobj(kernel, dest)
+ self.copy_kernel_into_artifact_cache(factory_path)
except BaseException, e:
logging.error(traceback.format_exc())
self.app.status(msg='Error while building system',