Bug 1053983 - yum creates /var/run/yum.pid, breaking minimal installs
Summary: yum creates /var/run/yum.pid, breaking minimal installs
Keywords:
Status: CLOSED DUPLICATE of bug 975864
Alias: None
Product: Fedora
Classification: Fedora
Component: yum
Version: 20
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Packaging Maintenance Team
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-01-16 04:59 UTC by Zbigniew Jędrzejewski-Szmek
Modified: 2014-01-16 05:55 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-01-16 05:55:35 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
patch to move lock file from /var/run to /run (858 bytes, patch)
2014-01-16 04:59 UTC, Zbigniew Jędrzejewski-Szmek
no flags Details | Diff

Description Zbigniew Jędrzejewski-Szmek 2014-01-16 04:59:32 UTC
Created attachment 850861 [details]
patch to move lock file from /var/run to /run

Description of problem:
When a minimal container is installed with yum --installroot=$container, $container/var/run is not a symlink to ../run as it should be, but a directory.
The sequence of events that leads to this is such:
1. filesystem package has /var/run as %ghost, and creates /var/run symlink in %pretrans, because of rpm's issues with converting a directory to a symlink
2. yum creates a file in /var/run
3. when filesystem is installed, the directory already exists and the symlink is not created.

Note that some packages contain or create files in /var/run, but they are installed later, so this is not a problem. yum seems to be culprit here.

As a result of this, created $container is unusable, e.g. the dbus socket is created as /var/run/dbus/system_bus_socket, but some programs look for it in /run/dbus/.



Version-Release number of selected component (if applicable):
yum-3.4.3-121.fc20.noarch
filesystem-3.2-19.fc20.x86_64

How reproducible:
100%

Steps to Reproduce: 
1. sudo yum -y --releasever=20 --installroot=`pwd`/container --disablerepo='*' --enablerepo=fedora install systemd passwd yum fedora-release vim-minimal procps-ng
2. when the package installation starts, press ^Z after the first few packages
3. container/var/run contains only var/run/yum.pid, where the contents match the stopped yum, and var/run is a directory

Comment 1 Kay Sievers 2014-01-16 05:51:05 UTC
This might be the same:
  https://bugzilla.redhat.com/show_bug.cgi?id=975864

Comment 2 Zbigniew Jędrzejewski-Szmek 2014-01-16 05:55:35 UTC
Yeah, even the patch is the same :) I should have looked properly.

*** This bug has been marked as a duplicate of bug 975864 ***


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