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

Vratislav Podzimek vpodzime at redhat.com
Mon Jul 7 09:38:57 UTC 2014


On Sun, 2014-06-29 at 10:48 -0700, Colin Walters wrote:
> 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()
Pushed.

-- 
Vratislav Podzimek

Anaconda Rider | Red Hat, Inc. | Brno - Czech Republic



More information about the anaconda-patches mailing list