Use --noprefix when calling dracut

Do not prefix initramfs files with /run/initramfs
when creating the dracut initramfs.
This commit is contained in:
Martin Gracik 2011-08-17 09:23:46 +02:00
parent 7d4cc255b9
commit 888f33c9d1

View File

@ -552,7 +552,7 @@ class LoraxInstallTree(BaseLoraxClass):
outfile = "/tmp/initramfs.img" # inside the chroot outfile = "/tmp/initramfs.img" # inside the chroot
logger.debug("chrooting into installtree to create initramfs.img") logger.debug("chrooting into installtree to create initramfs.img")
subprocess.check_call(["chroot", self.root, "/sbin/dracut", subprocess.check_call(["chroot", self.root, "/sbin/dracut",
"--nomdadmconf", "--nolvmconf", "--noprefix", "--nomdadmconf", "--nolvmconf",
"--xz", "--modules", "base dmsquash-live", "--xz", "--modules", "base dmsquash-live",
outfile, kernel.version]) outfile, kernel.version])
# move output file into installtree workdir # move output file into installtree workdir