Copy main kernel to isolinux and only others to pxeboot directory
This commit is contained in:
parent
bdb9b700f4
commit
f85fa1d1ed
@ -79,9 +79,6 @@ LIB32 = "lib"
|
|||||||
LIB64 = "lib64"
|
LIB64 = "lib64"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class Lorax(BaseLoraxClass):
|
class Lorax(BaseLoraxClass):
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
@ -403,16 +400,19 @@ class Lorax(BaseLoraxClass):
|
|||||||
else:
|
else:
|
||||||
logger.info("took {0:.2f} seconds".format(elapsed))
|
logger.info("took {0:.2f} seconds".format(elapsed))
|
||||||
|
|
||||||
# copy initrd to pxebootdir
|
|
||||||
shutil.copy2(initrd.fpath, self.outputtree.pxebootdir)
|
|
||||||
|
|
||||||
initrds.append(initrd)
|
initrds.append(initrd)
|
||||||
|
|
||||||
# create initrd hard link in isolinuxdir
|
# copy initrds to outputtree
|
||||||
source = joinpaths(self.outputtree.pxebootdir, initrds[0].fname)
|
shutil.copy2(initrds[0].fpath, self.outputtree.isolinuxdir)
|
||||||
link_name = joinpaths(self.outputtree.isolinuxdir, initrds[0].fname)
|
|
||||||
|
# create hard link
|
||||||
|
source = joinpaths(self.outputtree.isolinuxdir, initrds[0].fname)
|
||||||
|
link_name = joinpaths(self.outputtree.pxebootdir, initrds[0].fname)
|
||||||
os.link(source, link_name)
|
os.link(source, link_name)
|
||||||
|
|
||||||
|
for initrd in initrds[1:]:
|
||||||
|
shutil.copy2(initrd.fpath, self.outputtree.pxebootdir)
|
||||||
|
|
||||||
# create efi images
|
# create efi images
|
||||||
efiboot = None
|
efiboot = None
|
||||||
if grubefi:
|
if grubefi:
|
||||||
|
Loading…
Reference in New Issue
Block a user