Remove old boot.iso if it exists
This commit is contained in:
parent
4d3393b152
commit
68f52749ba
@ -297,6 +297,10 @@ class Lorax(BaseLoraxClass):
|
|||||||
self.treeinfo_add_section(self.conf.treeinfo, section, data)
|
self.treeinfo_add_section(self.conf.treeinfo, section, data)
|
||||||
|
|
||||||
# move the boot iso to the images directory
|
# move the boot iso to the images directory
|
||||||
|
dst = os.path.join(self.conf.imgdir, os.path.basename(bootiso))
|
||||||
|
if os.path.isfile(dst):
|
||||||
|
os.unlink(dst)
|
||||||
|
|
||||||
shutil.move(bootiso, self.conf.imgdir)
|
shutil.move(bootiso, self.conf.imgdir)
|
||||||
|
|
||||||
# copy the treeinfo and discinfo to the output directory
|
# copy the treeinfo and discinfo to the output directory
|
||||||
|
Loading…
Reference in New Issue
Block a user