Bug 2044061

Summary: systemd presets request - rpmdb-migrate
Product: [Fedora] Fedora Reporter: Neal Gompa <ngompa13>
Component: fedora-releaseAssignee: Stephen Gallagher <sgallagh>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: bugzilla, fedoraproject, jkeating, kellin, kevin, mboddu, michel, pbrobinson, sgallagh, thrcka, zbyszek
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-02-04 02:16:49 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2042099    

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