Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I need some help with this. I am trying to follow the Xen guide to provision a domU using package installation of the Fedora 15 release (the dom0 is CentOS 5.6). Ive run the rpm install command with an alternate root to a mounted root LV, but I keep running into this issue:

# rpm -ivh --nodeps --root /mnt/fedRoot fedora-release-15-1.noarch.rpm 
warning: fedora-release-15-1.noarch.rpm: Header V3 RSA/SHA256 signature: NOKEY, key ID 069c8460
Preparing...                ########################################### [100%]
   1:fedora-release         ########################################### [100%]
error: unpacking of archive failed: cpio: Bad magic

Im not sure where to begin with troubleshooting this.

As I understand it, rpm reads the "root" filesystem (which Ive designated to the mounted drive) and bases its verification and install directory structure based on the "root" system. What is the cpio: Bad magic bit? Any recommendations for making this rpm install work? let me know if more information is needed...

share|improve this question
add comment

1 Answer 1

up vote 2 down vote accepted

Starting with fedora 13 (I think that version anyway), RPMs started using sha256 checksums instead of md5. RHEL5/Centos5 do not support that.
You need to add --nomd5 to your rpm install command.

share|improve this answer
    
@Patrick... Thanks for the info, I have been findding alot of information that is pointing to the rpm program itself. I will try the --nomd5 flag when I get home from work today. If that doesnt work I think I am going to need to compile a version of rpm that has all the bits needed for this :( I will update when I have a result. –  Hari Seldon Jun 14 '11 at 10:58
    
unfortunately that didnt work... thank you for the suggestion. –  Hari Seldon Jun 14 '11 at 23:40
    
hrm, interesting as I've had that solve it for me. Sorry for the incorrect suggestion :-/ –  Patrick Jun 15 '11 at 0:24
    
no worries... I am thinking it may have something to do with the fact that I am installing Fedora using the package management from within CentOS. I have run a dependency test and posted another question regarding that result. –  Hari Seldon Jun 15 '11 at 0:36
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.