Bug 1274319

Summary: Put dnf's yumdb on live images
Product: [Fedora] Fedora Reporter: Kalev Lember <klember>
Component: distributionAssignee: Václav Pavlín <vpavlin>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 23CC: awilliam, dennis, kevin
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: AcceptedFreezeException
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-10-30 15:28:45 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: 1170822    
Attachments:
Description Flags
[PATCH] live base: Migrate yum's yumdb over to dnf none

Description Kalev Lember 2015-10-22 13:28:11 UTC
Created attachment 1085506 [details]
[PATCH] live base: Migrate yum's yumdb over to dnf

Right now live iso images are all generated with livecd-creator, which internally still uses yum. The images itself only include dnf and yum is long gone.

Since livecd-creator is yum based, it creates a /var/lib/yum/yumdb as part of the installation. This however doesn't work for DNF and PackageKit which are reading and writing the yumdb in /var/lib/dnf/yumdb.

I would like to fix this for Fedora 23 by moving the yumdb to the correct location in kickstart %post script. I discussed this with jsilhan from the DNF team and he agrees this makes sense.

One visible thing it fixes is showing the source repo for installed packages in gnome-software.

Before: https://kalev.fedorapeople.org/gnome-software-yumdb1.png
After: https://kalev.fedorapeople.org/gnome-software-yumdb2.png

Proposing as a freeze exception as it's an issue that is difficult to fix with an update, and it fixes a visible gnome-software UI problem on the live media.

Comment 1 Adam Williamson 2015-10-22 17:47:24 UTC
Discussed at 2015-10-22 freeze exception review meeting: https://meetbot-raw.fedoraproject.org/fedora-blocker-review/2015-10-22/f23-fe-review.2015-10-22-17.30.log.txt . Accepted as a freeze exception issue: this seems like a logical change that fixes at least one visible thing in the live image.

Er, are we sure a yum-written DB will always be compatible with DNF, though?

Comment 2 Kalev Lember 2015-10-22 18:29:05 UTC
Thanks, pushed to spin-kickstarts f23 and master.

As for compatibility, it's supposed to be compatible. :)

Luckily we don't need to care about full compatibility with any old yumdb out there, only need to make sure that the freshly produced yumdb that's created during the image compose works.