b46fc35901
Closes: https://github.com/projectatomic/rpm-ostree/issues/546 Previously, we'd open up the host's rpmdb for both `compose tree` and `ex container`. In the first case, because we require root, we'd succeed. For `ex container`, we'd spew an error. Fixing this was trickier than I thought. First because there was *also* a libdnf bug here: https://github.com/rpm-software-management/libdnf/pull/307 Second, there's a compatibility hazard here for anyone using `.repo` files that reference `$releasever`. This actually happened to me with `ex container` as I'd just done a `ln -s /etc/yum.repos.d/fedora.repo rpmmd.repos.d`. I fixed that first by doing a `sed -i -e 's,$releasever,26,' rpmmd.repos.d/*.repo`. As far as I can see today, none of Fedora Atomic or CentOS AH rely on this. But in order to enhance compatibility, let's add a "releasever" option. This makes it easier again to reuse stock `.repo` files if we wanted to do so. (Also, I realized we can just use `/usr/share/empty` as *the* canonical immutable empty directory) Closes: #875 Approved by: jlebon |
||
---|---|---|
.. | ||
manual | ||
CONTRIBUTING.md | ||
index.md |