[PATCH] Don't rebuild the initramfs with dracut

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

 



A dracut based initramfs should be perfectly good for the purposes
of booting the post-live system as well.  So don't recreate it
---
 livecd.py |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/livecd.py b/livecd.py
index 7efcd90..bfbe2ba 100644
--- a/livecd.py
+++ b/livecd.py
@@ -374,7 +374,9 @@ class LiveCDCopyBackend(backend.AnacondaBackend):
         # rebuild the initrd(s)
         vers = self.kernelVersionList(anaconda.rootPath)
         for (n, arch, tag) in vers:
-            packages.recreateInitrd(n, anaconda.rootPath)
+            # with dracut, we don't really need to recreate the initrds
+            if not os.path.exists("%s/boot/initrd-generic-%s.img" %(anaconda.rootPath, n)):
+                packages.recreateInitrd(n, anaconda.rootPath)
 
     def writeConfiguration(self):
         pass
-- 
1.6.3.3

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux