Red Hat Bugzilla – Bug 975864
yum should not create $installroot/var/run
Last modified: 2014-05-27 22:52:58 EDT
$ mkdir container
$ sudo yum -y --releasever=19 --nogpg --installroot=$(pwd)/container --disablerepo='*' --enablerepo=fedora install filesystem
will create $(pwd)/container/var/run/yum.pid before installing the filesystem rpm, which would create /var/run as a symlink to /run.
you might want to change yum/constants.py:
- YUM_PID_FILE = '/var/run/yum.pid'
+ YUM_PID_FILE = '/run/yum.pid'
Things in general must be *very* careful when creating anything in the empty
and fresh root directory.
The filesystem.rpm sets up a couple of symlinks to directories, blindly
creating real directories instead of symlinks here will break setups.
*** Bug 982276 has been marked as a duplicate of this bug. ***
This bug appears to have been reported against 'rawhide' during the Fedora 20 development cycle.
Changing version to '20'.
More information and reason for this action is here:
*** Bug 1053983 has been marked as a duplicate of this bug. ***
Is there anything preventing patch from https://bugzilla.redhat.com/attachment.cgi?id=850861&action=diff (essentially the same as Comment #1) from being applied?
IMO it's okay.. When /var/run is a symlink (the common case), this change is a no-op. User cachedir locking is not an issue too, as we use only basename(lockfile). James, do you know of a use case this might break?
Patch isn't terrible as is (just change path to /run/yum.pid) ... it might be better to not call makedirs() in _lock, and just give up (don't create lock file, or create it in cachedir, and carry on).
yum-3.4.3-135.fc20 has been submitted as an update for Fedora 20.
yum-3.4.3-135.fc19 has been submitted as an update for Fedora 19.
* 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 yum-3.4.3-135.fc20'
as soon as you are able to.
Please go to the following url:
then log in and leave karma (feedback).
yum-3.4.3-137.fc20 has been pushed to the Fedora 20 stable repository. If problems still persist, please make note of it in this bug report.
yum-3.4.3-137.fc19 has been pushed to the Fedora 19 stable repository. If problems still persist, please make note of it in this bug report.