Bug 1006366 - dnf makecache runs on LiveCD
Summary: dnf makecache runs on LiveCD
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf   
(Show other bugs)
Version: 20
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
Assignee: Ales Kozumplik
QA Contact: Fedora Extras Quality Assurance
Depends On:
TreeView+ depends on / blocked
Reported: 2013-09-10 13:59 UTC by Kamil Páral
Modified: 2014-09-30 23:41 UTC (History)
3 users (show)

Fixed In Version: dnf-0.4.1
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2013-10-25 07:13:53 UTC
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

Description Kamil Páral 2013-09-10 13:59:30 UTC
Description of problem:
With F20 Alpha TC5 Live, anaconda pulls in dnf into the compose. After being inside the LiveCD for a moment, I noticed dnf taking considerable cpu time (it was a slow machine and it was quite visible). It seems that the makecache timer is running on LiveCD as well. That downloads repo metadata and performs some operations on them, probably. That a) slows down operation/installation b) uses more RAM (because the root disk is memory-mapped).

We should stop caching repo metadata on livecd, it's really not necessary. It can be achieved for example by using this systemd condition:
> ConditionKernelCommandLine=!rd.live.image

That should disable the service/timer on LiveCD.

Version-Release number of selected component (if applicable):
F20 Alpha TC5 Live

How reproducible:

Steps to Reproduce:
1. boot F20 Alpha TC5 Live
2. wait 10 or more minutes, see top
3. check /var/cache/dnf

Comment 1 Ales Kozumplik 2013-09-10 14:12:07 UTC
Hi Kamil, thanks for catching and reporting this. I've pushed a fix:


Will be included with dnf-0.4.1.

Comment 2 Fedora Update System 2013-09-16 13:40:59 UTC
dnf-0.4.1-1.git55e6369.fc20 has been submitted as an update for Fedora 20.

Comment 3 Fedora Update System 2013-09-16 16:15:01 UTC
Package dnf-0.4.1-1.git55e6369.fc20, librepo-1.1.0-1.fc20, hawkey-0.4.1-1.git6f35513.fc20, libcomps-0.1.3-5.fc20:
* should fix your issue,
* was pushed to the Fedora 20 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing dnf-0.4.1-1.git55e6369.fc20 librepo-1.1.0-1.fc20 hawkey-0.4.1-1.git6f35513.fc20 libcomps-0.1.3-5.fc20'
as soon as you are able to.
Please go to the following url:
then log in and leave karma (feedback).

Comment 4 Ales Kozumplik 2013-10-25 07:13:53 UTC
dnf-0.4.1 has been pushed and superseded. Closing this.

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