Red Hat Bugzilla – Bug 120458
/sbin/lvm missing libreadline.so.4... /usr not avail yet!
Last modified: 2014-03-16 22:44:04 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6)
Description of problem:
/sbin/lvm in this RPM is linked dynamically to three(3) libraries
under /usr/lib (libreadline.so.4, libncurses.so.5, and libgpm.so.1).
At boot, /sbin/lvm is called from /etc/rc.d/rc.sysinit at line 378,
but /usr--if a separate partition--is not mounted/available until
line 605 of same.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Boot a system with /usr as separate from / filesystem
2. Error: /sbin/lvm: libreadline.so.4 not found
3. Enter root passwd at sulogin prompt
4. `e2fsck -y /dev/<where /usr is>; mount /dev/</usr> /usr'
5. run /sbin/lvm --mknodes[...] as "usual."
Actual Results: System works OK after steps 3. - 5., but on reboot, we're
back in the same mess
Expected Results: Simply boot the system as before the "upgrade" to
Will roll back to other lvm2 version, until this is fixed
*** Bug 120459 has been marked as a duplicate of this bug. ***
*** Bug 120705 has been marked as a duplicate of this bug. ***
rc.sysinit should be using lvm.static not lvm.
Created attachment 99403 [details]
Test patch for /etc/rc.d/rc.sysinit
Created attachment 99405 [details]
2 patches to rc.sysinit attached to fix the init script to use the
static version of the binary instead of the dynamically-linked one.
2.00.12 released which moves the non-static binaries to /usr/sbin and
has a temporary workaround (extra symlinks in /sbin) until initscripts
gets updated with the attached patches.
This is fixed in 7.50-1.