Create the outputtree kernels holder after copying the kernels

This commit is contained in:
Martin Gracik 2010-11-23 14:19:32 +01:00
parent 6dcc1b8666
commit c8b1f5f5ea

View File

@ -28,7 +28,7 @@ import shutil
import glob
import subprocess
from base import BaseLoraxClass
from base import BaseLoraxClass, DataHolder
from sysutils import *
@ -65,6 +65,8 @@ class LoraxOutputTree(BaseLoraxClass):
self.efibootdir = efibootdir
def get_kernels(self):
self.kernels = []
for n, kernel in enumerate(self.installtree.kernels):
suffix = ""
if kernel.type == K_PAE:
@ -88,8 +90,10 @@ class LoraxOutputTree(BaseLoraxClass):
shutil.copy2(kernel.fpath, dst)
# XXX change the fname and fpath to new values
kernel.fname = kname
kernel.fpath = dst
self.kernels.append(DataHolder(fname=kname,
fpath=dst,
version=kernel.version,
type=kernel.type))
def get_isolinux(self):
isolinuxbin = joinpaths(self.installtree.root,