mkinitrd in centos6?

Issues related to applications and software problems
Post Reply
lcs_lex
Posts: 3
Joined: 2010/11/24 08:52:54

mkinitrd in centos6?

Post by lcs_lex » 2011/08/12 18:24:00

Hello, today i have installed CentOS 6 and now i am trying to install OpenVZ.

The problem is: mkinitrd

[root@s1 ~]# yum install ovzkernel-xen.i686
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.biztelecom.ro
* extras: mirrors.biztelecom.ro
* openvz-kernel-rhel5: lnx.apollo-hw.ro
* openvz-utils: lnx.apollo-hw.ro
* rpmforge: ftp-stud.fht-esslingen.de
* updates: mirrors.biztelecom.ro
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package ovzkernel-xen.i686 0:2.6.18-238.19.1.el5.028stab092.2 set to be installed
--> Processing Dependency: mkinitrd >= 3.5.5 for package: ovzkernel-xen-2.6.18-238.19.1.el5.028stab092.2.i686
--> Finished Dependency Resolution
Error: Package: ovzkernel-xen-2.6.18-238.19.1.el5.028stab092.2.i686 (openvz-kernel-rhel5)
Requires: mkinitrd >= 3.5.5
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest


When i try to install mkinitrd:

[root@s1 ~]# yum install mkinitrd
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.biztelecom.ro
* extras: mirrors.biztelecom.ro
* openvz-kernel-rhel5: lnx.apollo-hw.ro
* openvz-utils: lnx.apollo-hw.ro
* rpmforge: ftp-stud.fht-esslingen.de
* updates: mirrors.biztelecom.ro
Setting up Install Process
No package mkinitrd available.
Error: Nothing to do

Can anyone tell me how to install mkinitrd ? Tnx and sorry for my English :-)

User avatar
TrevorH
Site Admin
Posts: 33191
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

mkinitrd in centos6?

Post by TrevorH » 2011/08/12 18:32:57

[quote]
The problem is: mkinitrd
[/quote]

Err, no it's not, The problem is that you are busy installing a kernel there that is intended for CentOS 5 (at least I guess so). It has a dependency on mkinitrd which is how initial RAM disks were built on CentOS 5. CentOS 6 doesn't use mkinitrd any more, it uses something called dracut. So `man dracut` will tell you how that is used.

But if you want to use that kernel, I think you need to be running CentOS 5.x not 6.x.

lcs_lex
Posts: 3
Joined: 2010/11/24 08:52:54

Re: mkinitrd in centos6?

Post by lcs_lex » 2011/08/12 19:02:10

So the solution is to install centOS 5.

Thank you for the reply :)

Post Reply