Make initrd hard link

Don't copy initrd to both isolinux anx pxeboot
directory. Create a hard link in isolinux instead.
This commit is contained in:
Martin Gracik 2010-11-02 14:06:55 +01:00
parent bd476e1d89
commit 4dcdd835b0

View File

@ -381,10 +381,14 @@ class Lorax(BaseLoraxClass):
else: else:
logger.info("took {0:.2f} seconds".format(elapsed)) logger.info("took {0:.2f} seconds".format(elapsed))
# XXX copy initrd to isolinuxdir and pxebootdir # copy initrd to pxebootdir
shutil.copy2(initrd.fpath, self.outputtree.isolinuxdir)
shutil.copy2(initrd.fpath, self.outputtree.pxebootdir) shutil.copy2(initrd.fpath, self.outputtree.pxebootdir)
# make initrd hardlink in isolinuxdir
source = joinpaths(self.outputtree.pxebootdir, initrd.fname)
link_name = joinpaths(self.outputtree.isolinuxdir, initrd.fname)
os.link(source, link_name)
# create efi images # create efi images
efiboot = None efiboot = None
if grubefi: if grubefi: