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

composepost: Remove /usr/lib/sysimage/rpm dir before symlinking #3399

Merged
merged 1 commit into from
Feb 3, 2022

Conversation

jlebon
Copy link
Member

@jlebon jlebon commented Feb 3, 2022

Rawhide has moved the rpmdb to /usr/lib/sysimage/rpm, which is great!
FCOS composes started breaking because rpm now creates that directory:

#3397

We should be able to eventually flip our _dbpath macro with this (and
eventually much later once it hits RHEL, stop overriding the macro at
all). This will require some careful changes and testing.

But anyway we probably don't want to do this yet on f35 to match Fedora,
so we will want a transition mechanism; e.g. a rpmdb-in-sysimage
treefile knob.

For now just to unblock rawhide changes, let's remove the empty dir so
we can symlink and keep /usr/share/rpm as canonical. We'll rework once
we have the permanent solution.

Rawhide has moved the rpmdb to `/usr/lib/sysimage/rpm`, which is great!
FCOS composes started breaking because rpm now creates that directory:

coreos#3397

We should be able to eventually flip our `_dbpath` macro with this (and
eventually much later once it hits RHEL, stop overriding the macro at
all). This will require some careful changes and testing.

But anyway we probably don't want to do this yet on f35 to match Fedora,
so we will want a transition mechanism; e.g. a `rpmdb-in-sysimage`
treefile knob.

For now just to unblock rawhide changes, let's remove the empty dir so
we can symlink and keep `/usr/share/rpm` as canonical. We'll rework once
we have the permanent solution.
@jlebon
Copy link
Member Author

jlebon commented Feb 3, 2022

CI won't test rawhide here. Wish it was as simple as /test rawhide.

Anyway, I did verify this unbreaks rawhide composes and that at least ext.config.extensions.package passes (still running all tests now).

@cgwalters cgwalters enabled auto-merge (rebase) February 3, 2022 17:24
@jlebon jlebon mentioned this pull request Feb 3, 2022
@cgwalters cgwalters merged commit 12147dd into coreos:main Feb 3, 2022
@jlebon jlebon deleted the pr/rpmdb-symlink branch April 23, 2023 23:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants