Bug 2044061 - systemd presets request - rpmdb-migrate
Summary: systemd presets request - rpmdb-migrate
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: fedora-release
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Stephen Gallagher
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 2042099
TreeView+ depends on / blocked
 
Reported: 2022-01-23 14:39 UTC by Neal Gompa
Modified: 2024-06-06 04:25 UTC (History)
11 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2022-02-04 02:16:49 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Neal Gompa 2022-01-23 14:39:23 UTC
rpmdb-migrate is a newly added (rpm >= 4.17.0-7) service which performs a rpm database rebuild at boot-time when /var/lib/rpm/.migratedb flag file exists (ie similar to rpmdb-rebuild service hooked on /usr/lib/sysimage/rpm/.rebuilddb). 

The immediate motivation is for performing database location migration for https://fedoraproject.org/wiki/Changes/RelocateRPMToUsr in a reasonably safe and controlled environment.

* Does the service require post-rpm-installation configuration in order to be useful (for example, does it need manual edits to a configuration file)?

No

* Does the service listen on a network socket for connections originating on a separate physical or virtual machine?

No

* Is the service non-persistent (i.e. run once at startup and exit)?

Yes

* What is the exact name (or names) of the systemd unit files to be enabled?

rpmdb-migrate.service

* Is this request for all Fedora deliverables or only for some Editions (list them)?

All

Comment 1 Neal Gompa 2022-01-23 15:30:14 UTC
PR submitted: https://src.fedoraproject.org/rpms/fedora-release/pull-request/212

Comment 2 Neal Gompa 2022-02-04 02:16:49 UTC
PR merged and released into Rawhide.

Comment 3 Zbigniew Jędrzejewski-Szmek 2024-02-06 10:53:26 UTC
Hmm, should this service actually be enabled in the default presets?
We already have a %triggerun scriptlet which enables it on upgraded systems:
https://src.fedoraproject.org/rpms/rpm/blob/rawhide/f/rpm.spec#_435
I don't think it should be enabled on new systems, since those presumably
have the database in the correct location.

See https://bugzilla.redhat.com/show_bug.cgi?id=2262393.

Comment 4 Red Hat Bugzilla 2024-06-06 04:25:04 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 120 days


Note You need to log in before you can comment on or make changes to this bug.