Commits

Anonymous committed 4b1149c

added install live kernel

Comments (0)

Files changed (1)

vinstall/controller/automatic.py

         """Install Linux image from a Live install media
         
         """
-        return NotImplemented
+        install_media = self.config["install_media"]
+        kernel_version = install_media.config.get("kernels", "sata")
+        kernel_version = kernel_version.replace("\"", "")
+        source = os.path.join('/mnt', 'SOURCE', 'boot', 'vmlinuz')
+        target = os.path.join('/mnt', 'TARGET', 'boot', 'vmlinuz-%s' %
+            kernel_version)
+        shutil.copyfile(source, target)
 
     def fstab(self, disk):
         """Create and install a fstab file in disk