Bug 2050428

Summary: Adjust resetRpmDb for move of RPM database
Product: [Fedora] Fedora Reporter: Adam Williamson <awilliam>
Component: anacondaAssignee: Vladimír Slávik <vslavik>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 36CC: anaconda-maint-list, jonathan, kellin, vanmeeuwen+fedora, vponcova, vslavik, w
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: anaconda-36.16.3-1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-09-06 15:53:11 UTC Type: Bug
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 Adam Williamson 2022-02-03 23:21:51 UTC
pyanaconda/core/util.py has a resetRpmDB() function which hardcodes `/var/lib/rpm` as the RPM database location. But it's not any more:

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

so, that function - if it's still relevant - might need updating to consider the new location too.

Comment 1 Ben Cotton 2022-02-08 20:16:56 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 36 development cycle.
Changing version to 36.

Comment 2 Vladimír Slávik 2022-02-11 11:00:20 UTC
Taking, needs more looking.

- Weird use of the mentioned function, looks like it might not be useful anymore.
- There are more locations hardcoding the path.

Comment 3 Vladimír Slávik 2022-02-16 13:58:20 UTC
One of the PRs to address this: https://github.com/rhinstaller/anaconda/pull/3874

Comment 4 Vladimír Slávik 2022-03-08 18:20:27 UTC
Another and hopefully last PR: https://github.com/rhinstaller/anaconda/pull/3934

Comment 5 Vladimír Slávik 2022-03-16 12:12:28 UTC
Both PRs merged for f36, but we're currently doing only patch builds so not released yet.