[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[lorax] Use --noprefix when calling dracut



Do not prefix initramfs files with /run/initramfs
when creating the dracut initramfs.
---
 src/pylorax/installtree.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/pylorax/installtree.py b/src/pylorax/installtree.py
index 11a2390..e0ddd9a 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
-- 
1.7.3.2


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]