Bug 2042099 - Relocate RPM database to /usr
Summary: Relocate RPM database to /usr
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: Changes Tracking
Version: 36
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Chris Murphy
QA Contact:
URL:
Whiteboard:
: 1847619 (view as bug list)
Depends On: 2042146 2042147 2042149 2042150 2044061 2050428 2061141 2066427
Blocks: F36Changes
TreeView+ depends on / blocked
 
Reported: 2022-01-18 19:52 UTC by Ben Cotton
Modified: 2022-08-03 18:32 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-05-10 14:41:45 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Ben Cotton 2022-01-18 19:52:32 UTC
This is a tracking bug for Change: Relocate RPM database to /usr
For more details, see: https://fedoraproject.org/wiki/Changes/RelocateRPMToUsr

Currently, the RPM databases is located in /var. Let's move it to /usr. The move is already under way in rpm-ostree-based installations, and in (open)SUSE.

If you encounter a bug related to this Change, please do not comment here. Instead create a new bug and set it to block this bug.

Comment 1 Neal Gompa 2022-01-23 15:25:01 UTC
PR to rpm made: https://src.fedoraproject.org/rpms/rpm/pull-request/21

Comment 2 Neal Gompa 2022-02-04 02:15:46 UTC
PR merged and released into Rawhide

Comment 3 Ben Cotton 2022-02-08 21:06:49 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 36 development cycle.
Changing version to 36.

Comment 4 Neal Gompa 2022-02-14 10:11:23 UTC
*** Bug 1847619 has been marked as a duplicate of this bug. ***

Comment 5 Ben Cotton 2022-02-22 16:34:09 UTC
We have reached the 'Change complete (100% complete)' deadline in the Fedora Linux 36 release schedule.

At this time, all Changes should be fully complete. Indicate this by setting this tracking bug to ON_QA.

If you need to defer this Change to a subsequent release, please needinfo me.

Comment 6 Fedora Blocker Bugs Application 2022-03-21 18:25:18 UTC
Proposed as a Blocker for 36-final by Fedora user chrismurphy using the blocker tracking app because:

 https://fedoraproject.org/wiki/Changes/RelocateRPMToUsr

NOTE: the bug does not affect upgrades, just new clean installs.

A condition of the change is there should be a symlink /var/lib/rpm -> /usr/lib/sysimage/rpm and the change does block release. We're past freeze so the contingency probably doesn't apply.

Since the missing symlink isn't breaking any dnf or PackageKit functionality, or seemingly anything else out of the box, I think we're on solid ground saying "well it's a beta" and documenting this in common bugs. And making this a final blocker, so that's what I'm proposing.

Comment 7 Chris Murphy 2022-03-21 18:27:19 UTC
Darn, wrong bug! Undo!

Comment 8 Chris Murphy 2022-03-21 18:28:26 UTC
Bull in a china shop today...

Comment 9 Ben Cotton 2022-05-10 14:41:45 UTC
F36 was released today. If this Change did not land in the release, please notify bcotton as soon as possible.

Comment 10 Bruce Jerrick 2022-08-03 16:16:20 UTC
What's the rationale for the move to /usr ?  The purpose of /var was/is to get host-dependent files out of /usr (originally, so /usr could be read-only and shared amongst diskless machines).

Having separate filesystems for /var (volatile) and /usr (relatively stable) still seems like a good idea, if just for accountability.

Comment 11 Bruce Jerrick 2022-08-03 16:30:00 UTC
(In reply to Bruce Jerrick from comment #10)
> What's the rationale for the move to /usr ?  ...

Thinking about this some more, the rpmdb is closer-tied to the contents of /usr than to the logs, etc. of a specific machine.
But I hope there's not a trend to move /var back to /usr .

Comment 12 Neal Gompa 2022-08-03 18:32:01 UTC
(In reply to Bruce Jerrick from comment #11)
> (In reply to Bruce Jerrick from comment #10)
> > What's the rationale for the move to /usr ?  ...
> 
> Thinking about this some more, the rpmdb is closer-tied to the contents of
> /usr than to the logs, etc. of a specific machine.
> But I hope there's not a trend to move /var back to /usr .

Nah, it's just the rpmdb and in the future the dnfdb. The rest is staying where it is.


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