Patch to turn a centos-4 metadata into a centos-5 version [message #25425] |
Mon, 24 December 2007 11:46 |
Chris Turan
Messages: 6 Registered: December 2007
|
Junior Member |
|
|
I've recently put together this patch to convert a vanilla centos-4
metadata into one for centos-5. Template works flawlessly for me.
Instructions to apply the patch:
1) wget
http://download.openvz.org/template/metadata/centos-4/src/vztmpl-centos-4.src.tar.bz2
2) tar xvjf vztmpl-centos-4.src.tar.bz2
3) cd centos-4
4) patch -p1 < /path/to/attached/centos-5-metadata.diff
5) yum install createrepo
6) make clean
7) 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.
-Chris
[Updated on: Mon, 24 December 2007 13:41] by Moderator Report message to a moderator
|
|
|
|
|
|
|
|
|
|
Re: Re: Patch to turn a centos-4 metadata into a centos-5 version [message #26029 is a reply to message #25870] |
Mon, 14 January 2008 16:30 |
rmello
Messages: 15 Registered: October 2007
|
Junior Member |
|
|
On Jan 9, 2008 5:58 PM, Chris Turan <lists@christuran.com> wrote:
>
> Afterwards, you'll have to install the template on your host system, run
> vzpkgcache, and run vzctl create but there already some very good
Running vzpkgcache was the missing bit of information for me. Thanks a
lot for the patch. Worked great for me!
-Roberto
|
|
|