Prepend dracut to the temporary initramfs directory (#722999)

Temporary directory with just the kernel version interferes
with the modules temporary directory.
This commit is contained in:
Martin Gracik 2011-07-19 09:18:41 +02:00
parent 01c026e237
commit b0ff70a877

View File

@ -556,7 +556,7 @@ class LoraxInstallTree(BaseLoraxClass):
"--xz", "--modules", "base dmsquash-live",
outfile, kernel.version])
# move output file into installtree workdir
dstdir = joinpaths(self.workdir, kernel.version)
dstdir = joinpaths(self.workdir, "dracut-%s" % kernel.version)
os.makedirs(dstdir)
self.initramfs[kernel.version] = joinpaths(dstdir, "initramfs.img")
shutil.move(joinpaths(self.root, outfile),