Red Hat Bugzilla – Bug 202588
Unable to install RPMs in rescue mode
Last modified: 2007-11-30 17:11:40 EST
Description of problem:
When attempting to get around a kernel problem, I tried booting to rescue mode
and installing an alternative kernel. The RPM installation did not succeed.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. rpm -ivh kernel-blah.rpm
Lots of errors about /mnt/sysimage/var/lib/rpm/Basenames, even though that file
Kernel RPM should be installed into the chroot system.
Your invocation looks incorrect.
Either chroot /mnt/sysimage then install using rpm -ivh or outside chroot rpm
--root /mnt/sysimage -ivh /path/to/kernel.
I did the former (chroot first then rom -ivh) - that's what didn't work.
I've just used fc6t2 pxelinux images to do the following:
1) cp /mnt/source/<RAWHIDE-KERNEL>.rpm /mnt/sysimage/root
2) chroot /mnt/sysimage
3) rpm -ivh /root/<RAWHIDE-KERNEL>.rpm
rpm -q kernel
rpm -e <OLD KERNEL>
ctrl-D to exit chroot
1) rpm -ivh --oldpackage --root /mnt/sysimage \
Worked fine for me. If you can reproduce please reopen with full steps and
fully transcribed error messages.