Re: [vserver] vserver on Gentoo linux

About this list Date view Thread view Subject view Author view Attachment view

From: James Gibson (
Date: Sun Mar 24 2002 - 13:11:50 EST

On Sun, 24 Mar 2002, Cedric Veilleux wrote:

> Hi,
> I would like to use vsersvers on a Gentoo linux system. Gentoo
> linux is a remarkably clean and easy to maintain source distro.

Isn't it though? I've been using Gentoo for ~6 months now and I can't go
back. =)

> As you can see, configuration files are not distinguished from
> other files. Although, a list of directories containing configuration
> files is maintained. On my workstation, this list looks like:

you are talking about the CONFIG_PROTECT and CONFIG_PROTECT_MASK
variables in /etc/make.profile , right?

> I know the "vbuild" program relies on rpm's to get the list of
> files. I am not familiar with rpm's nor vservers (yet), so forgive me if
> I am mistaken. So the vbuild program is the one I should modify to make
> it use gentoo's portage system to get the list of installed packages and
> their files, right?

This sounds about right, and is something I have been meaning to get
around to. You should also need to modify the vunify program and I'm not
sure what-all else; I will give it a once-through myself tonight. Another
good thing would be to create a set of alternate .ebuild files for gentoo
,such as sys-apps/baselayout, in order to make creating the initial
vserver easier.

Getting a list of all the files installed by packages is rather trivial;
something like "cat $GROOT/var/db/pkg/*/*/CONTENTS | awk '/^obj/{print
$2;}'" will get you a listing of all the files installed by the gentoo
distro under GROOT. You would still need to seperate that list based on
your CONFIG_* variables, but that wouldn't be too hard.

Klavs' response seems spot-on as well.. I rememeber something a month or
so ago about someone patching the vbuild script to handle debian's package
manager, and had the forsight to generalize it.. I'll go look around for
that, and forward you a copy of the relevant info.

James Gibson

About this list Date view Thread view Subject view Author view Attachment view

This archive was generated by hypermail 2.1.4 : Mon Aug 19 2002 - 12:01:01 EDT