[PATCH] rpmostreepayload: Rework remote add handling

Colin Walters walters at verbum.org
Tue Dec 16 04:03:39 UTC 2014

**NOTE** This will break rpmostreepayload unless you have
a version of ostree later than 2014.12 with

OSTree's handling of remotes is a bit funky, because it supports
non-root operation, where the remotes are stored in the repo config,
and historically that was the only supported method.

But more recently, support for /etc/ostree/remotes.d was added; it's a
lot friendlier to system administrators for the special case of the
system repository /ostree/repo.

However for Anaconda, there's a bootstrapping problem as that
directory doesn't yet exist when we're doing an install.  And we
(fortunately) don't even try to write there because OSTree doesn't
understand that /mnt/sysimage/ostree/repo is a system repository.

The goal is for the remote to end up in /etc/ostree/remotes.d, so to
do that unfortunately involves the complex dance in this patch.
 pyanaconda/packaging/rpmostreepayload.py | 54 +++++++++++++++++++++++++-------
 1 file changed, 42 insertions(+), 12 deletions(-)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-rpmostreepayload-Rework-remote-add-handling.patch
Type: text/x-patch
Size: 5284 bytes
Desc: not available
URL: <https://lists.fedorahosted.org/pipermail/anaconda-patches/attachments/20141215/56c3f750/attachment-0001.bin>

More information about the anaconda-patches mailing list