Bug 117687 - Rescue boot needs prelink for rpm verify to work
Rescue boot needs prelink for rpm verify to work
Status: CLOSED RAWHIDE
Product: Fedora
Classification: Fedora
Component: anaconda (Show other bugs)
2
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Jeremy Katz
: FutureFeature
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2004-03-06 23:59 EST by Ben Smith
Modified: 2007-11-30 17:10 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2005-08-15 12:02:29 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Ben Smith 2004-03-06 23:59:21 EST
Description of problem:

When running rpm --verify from the 'rescue' boot option on the install
CD, rpm is confused by prelinked binaries (since prelink is not
available) and mistakenly reports them as modified.

How reproducible:

100%

Steps to Reproduce:
1.  Boot from install cd
2.  Select 'linux rescue'
3.  Follow the instructions and mount your root partition.
4.  rpm -r /mnt/sysimage -Va
  
Actual results:

Prelinked binaries are reported as having changed size/md5sum.

Expected results:

RPM should detect prelinked binaries.

Additional info:

AFAICT, the prelink binary just needs to be added to the 'rescue'
image.  That should enable rpm to correctly detect prelinked binaries.
Comment 1 Ben Smith 2004-04-14 07:56:12 EDT
See also bug 106523
Comment 2 Jeremy Katz 2004-05-06 17:06:37 EDT
Added in CVS
Comment 3 Ben Smith 2004-06-19 19:26:22 EDT
Tested with FC2 and, while prelink is present, it also needs a 
couple of configuration files in order to work properly: 
 
/etc/prelink.conf <-- can be blank, but should be present 
/etc/rpm/macros.prelink <-- from the prelink package 
 
'/etc/rpm/macros.prelink' just needs to contain the following line: 
%__prelink_undo_cmd     /usr/sbin/prelink prelink -y library 
 
Comment 4 Jeremy Katz 2004-10-07 14:03:29 EDT
Fixed in CVS

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