diff options
author | Lars Wirzenius <lars.wirzenius@codethink.co.uk> | 2012-07-26 11:36:20 +0100 |
---|---|---|
committer | Lars Wirzenius <lars.wirzenius@codethink.co.uk> | 2012-07-26 12:03:36 +0100 |
commit | 5300fdafdf891de473529c1bec618d5d3f88fa59 (patch) | |
tree | 23bbcce148971f715420ac51d4f30509194f78ff /morphlib/plugins/syslinux-disk-systembuilder_plugin.py | |
parent | e20f9de6e4235d7ab2087031d405827253faeccb (diff) | |
download | morph-5300fdafdf891de473529c1bec618d5d3f88fa59.tar.gz |
Refactor: move kernel artifact creation into base class
Diffstat (limited to 'morphlib/plugins/syslinux-disk-systembuilder_plugin.py')
-rw-r--r-- | morphlib/plugins/syslinux-disk-systembuilder_plugin.py | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/morphlib/plugins/syslinux-disk-systembuilder_plugin.py b/morphlib/plugins/syslinux-disk-systembuilder_plugin.py index 3728f553..4c6f25ad 100644 --- a/morphlib/plugins/syslinux-disk-systembuilder_plugin.py +++ b/morphlib/plugins/syslinux-disk-systembuilder_plugin.py @@ -66,15 +66,7 @@ class SyslinuxDiskBuilder(SystemKindBuilder): # pragma: no cover factory_run_path = os.path.join(mount_point, 'factory-run') self._install_boot_files(arch, factory_run_path, mount_point) self._install_extlinux(mount_point) - - 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', - 'vmlinuz')) as kernel: - shutil.copyfileobj(kernel, dest) - + self.copy_kernel_into_artifact_cache(factory_path) self._unmount(mount_point) except BaseException, e: logging.error(traceback.format_exc()) |