Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

postprocess: Add a symlink /usr/lib/sysimage/rpm to the rpmdb #2154

Merged
merged 1 commit into from
Jul 8, 2020

Conversation

cgwalters
Copy link
Member

@cgwalters cgwalters commented Jul 3, 2020

Following on to:

Write a symlink in /usr/lib/sysimage/rpm pointing to our current
/usr/share/rpm - this way clients can start looking for it there,
and then at some point we'll flip the symlink around and
have /usr/share/rpm pointing to the new location.

(Doing a hard swap now has upgrade implications)

@Conan-Kudo
Copy link

@cgwalters Why can't we do a hard swap and have the symlink in the legacy location?

@cgwalters
Copy link
Member Author

It's a much more invasive patch requiring changing at least the livefs code and checkout_only_rpmdb() and the test suite when I took a quick glance.

The goal here is for projects like libsolv to be able to consistently find the db at the new location, and the symlink solves that. But if you want to dive into the code and do the bigger change, feel free!

Copy link
Member

@jlebon jlebon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just one comment, LGTM otherwise!

@@ -35,6 +35,7 @@
/* See http://lists.rpm.org/pipermail/rpm-maint/2017-October/006681.html */
#define RPMOSTREE_RPMDB_LOCATION "usr/share/rpm"
#define RPMOSTREE_SYSIMAGE_DIR "usr/lib/sysimage"
#define RPMOSTREE_NEW_RPMDB_LOCATION RPMOSTREE_SYSIMAGE_DIR "/rpm"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The funny thing with NEW is that it quickly becomes outdated. :) How about just e.g. RPMOSTREE_SYSIMAGE_RPMDB_LOCATION?

Following on to:

- http://lists.rpm.org/pipermail/rpm-maint/2017-October/006681.html
- coreos#1142
- openSUSE/libsolv#386

Write a symlink in `/usr/lib/sysimage/rpm` pointing to our current
`/usr/share/rpm` - this way clients can start looking for it there,
and then at some point we'll flip the symlink around and
have `/usr/share/rpm` pointing to the new location.

(Doing a hard swap now has upgrade implications)
@jlebon
Copy link
Member

jlebon commented Jul 6, 2020

/lgtm

@openshift-ci-robot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ashcrow, cgwalters, Conan-Kudo, jlebon

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:
  • OWNERS [ashcrow,cgwalters,jlebon]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ashcrow
Copy link
Member

ashcrow commented Jul 7, 2020

Looks like a CI timeout

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants