Bugzilla will be upgraded to version 5.0 on December 2, 2018. The outage period for the upgrade will start at 0:00 UTC and have a duration of 12 hours
Bug 590588 - rpm -V fails on chroot dir, /tmp/chroot/var/lib/rpm: No such file or directory
rpm -V fails on chroot dir, /tmp/chroot/var/lib/rpm: No such file or directory
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: rpm (Show other bugs)
All Linux
medium Severity medium
: rc
: ---
Assigned To: Panu Matilainen
BaseOS QE Security Team
: Regression
Depends On:
  Show dependency treegraph
Reported: 2010-05-10 04:59 EDT by Petr Sklenar
Modified: 2011-03-15 09:54 EDT (History)
2 users (show)

See Also:
Fixed In Version: rpm-4.8.0-8.el6
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2010-07-02 15:49:46 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Petr Sklenar 2010-05-10 04:59:38 EDT
Description of problem:
rpm -V fails on chroot dir. It writes /tmp/chroot/var/lib/rpm: No such file or directory.

This was fixed in rhel54 in 508074.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. yum install installroot=/tmp/chroot rpm -y
# it successfully installs 100megs of packages

2. rpm --root /tmp/chroot -V rpm
Actual results:
[root@auto-x86-64-001 ~]# rpm --root /tmp/chroot -Va
S.5....T.  c /etc/pki/nssdb/pkcs11.txt
/tmp/chroot/var/lib/rpm: No such file or directory
[root@auto-x86-64-001 ~]# rpm --root /tmp/chroot -V rpm
/tmp/chroot/var/lib/rpm: No such file or directory
[root@auto-x86-64-001 ~]# rpm -q rpm
[root@auto-x86-64-001 ~]# uname -a
Linux auto-x86-64-001.ss.eng.bos.redhat.com 2.6.32-23.el6.x86_64 #1 SMP Tue Apr 27 21:17:28 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux
[root@auto-x86-64-001 ~]# cat /etc/redhat-release 
Red Hat Enterprise Linux release 6.0 Beta (Santiago)

Expected results:
Verification of packages works well on chroot dir

Additional info:
Comment 5 Panu Matilainen 2010-05-18 04:36:52 EDT
Fixed in rpm-4.8.0-8.el6
Comment 7 Petr Beňas 2010-05-24 04:16:20 EDT
Verified on RHEL6.0-20100523.0 i386 and x86_64

:: [   PASS   ] :: Running 'rpm -Va --root /tmp/tmp.nqYVFzBuuD 2> log'
:: [   PASS   ] :: 100. attempt There is no error
:: [   LOG    ] :: Duration: 11m 23s
:: [   LOG    ] :: Assertions: 200 good, 0 bad
Comment 8 releng-rhel@redhat.com 2010-07-02 15:49:46 EDT
Red Hat Enterprise Linux Beta 2 is now available and should resolve
the problem described in this bug report. This report is therefore being closed
with a resolution of CURRENTRELEASE. You may reopen this bug report if the
solution does not work for you.

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