From 888f33c9d1ba2b69ad6ef89c69dc74ec3aeec0ca Mon Sep 17 00:00:00 2001 From: Martin Gracik Date: Wed, 17 Aug 2011 09:23:46 +0200 Subject: [PATCH] Use --noprefix when calling dracut Do not prefix initramfs files with /run/initramfs when creating the dracut initramfs. --- src/pylorax/installtree.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pylorax/installtree.py b/src/pylorax/installtree.py index 11a23909..e0ddd9a4 100644 --- a/src/pylorax/installtree.py +++ b/src/pylorax/installtree.py @@ -552,7 +552,7 @@ class LoraxInstallTree(BaseLoraxClass): outfile = "/tmp/initramfs.img" # inside the chroot logger.debug("chrooting into installtree to create initramfs.img") subprocess.check_call(["chroot", self.root, "/sbin/dracut", - "--nomdadmconf", "--nolvmconf", + "--noprefix", "--nomdadmconf", "--nolvmconf", "--xz", "--modules", "base dmsquash-live", outfile, kernel.version]) # move output file into installtree workdir