OpenVZ Forum


Home » Mailing lists » Users » Patch to turn a centos-4 metadata into a centos-5 version
Re: Patch to turn a centos-4 metadata into a centos-5 version [message #25729 is a reply to message #25425] Tue, 08 January 2008 10:12 Go to previous messageGo to previous message
Chris Turan is currently offline  Chris Turan
Messages: 6
Registered: December 2007
Junior Member
This is an updated version of my previous diff.  I missed documenting
a step in the first version.  This caused an error in the build process.

A binary and the diff are provided at:
	http://www.neonhost.com/openvz/

This patch to convert a vanilla centos-4 metadata into one for centos-5.

Instructions to apply the patch:
1. mkdir /tmp/openvz
2. cd /tmp/openvz
3. wget 
http://download.openvz.org/template/metadata/centos-4/src/vztmpl-centos-4.src.tar.bz2
4. wget http://www.neonhost.com/openvz/centos-5-metadata-v2.diff
5. tar xvjf vztmpl-centos-4.src.tar.bz2
6. mv centos-4 centos-5
7. cd centos-5
8. patch -p1 < ../centos-5-metadata-v2.diff
9. yum install createrepo
10. make clean
11. make rpms

If your arch is i386, the metadata rpm should now be located in:
/usr/src/redhat/RPMS/i386/vztmpl-centos-5-2.0-2.i386.rpm


Notes:
- "kernel = 2.6.18" is needed to fix the "Error: initscripts conflicts 
with kernel < 2.6.12"
- udevd must be disabled when the vps starts up

I'd very much be interested in seeing this become an official
metadata template on openvz.org.  I'd like to get centos-5 out of the
user contrib area.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Debuginfo-package for kernel-ovz
Next Topic: time wait bucket table overflow
Goto Forum:
  


Current Time: Tue Jul 15 21:06:04 GMT 2025

Total time taken to generate the page: 0.03870 seconds