[PATCH] rpmostreepayload: Don't recreateInitrds for this payload

Colin Walters walters at verbum.org
Sun Jun 29 17:48:10 UTC 2014


I had this patch sitting locally, haven't had a chance to test it yet,
sending
it out so it's not lost and for early comment.

The OSTree replication design has the initramfs generated on a compose
server.  Avoid regenerating them locally.
---
 pyanaconda/packaging/rpmostreepayload.py | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/pyanaconda/packaging/rpmostreepayload.py
b/pyanaconda/packaging/rpmostreepayload.py
index 301da89..0710890 100644
--- a/pyanaconda/packaging/rpmostreepayload.py
+++ b/pyanaconda/packaging/rpmostreepayload.py
@@ -197,6 +197,12 @@ class RPMOSTreePayload(ArchivePayload):
                                        ["--create", "--boot", "--root="
                                        + iutil.getSysroot(),
                                         "--prefix=/var/" + varsubdir])
 
+    def recreateInitrds(self, force=False):
+        # For rpmostree payloads, we're replicating an initramfs from
+        # a compose server, and should never be regenerating them
+        # per-machine.
+        pass
+
     def postInstall(self):
         super(RPMOSTreePayload, self).postInstall()
 
-- 
1.8.3.1

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-rpmostreepayload-Don-t-recreateInitrds-for-this-payl.patch
Type: text/x-patch
Size: 1199 bytes
Desc: not available
URL: <https://lists.fedorahosted.org/pipermail/anaconda-patches/attachments/20140629/6d59722e/attachment.bin>


More information about the anaconda-patches mailing list