Hi

On Wed, Dec 14, 2005 at 12:06:00AM -0500, The Anarcat wrote:
> Package: util-vserver
> Version: 0.30.209-1
> Severity: normal
> 
> The documentation at:
> 
> http://www.nongnu.org/util-vserver/doc/conf/configuration.html
> 
> says that:
> 
> "#  /etc/vservers/.distributions/dist/apt
> Default content of the /etc/apt/ directory."
> 
> In other words, I would expect that doing this:
> 
> cp /etc/apt/sources.list /etc/vservers/.distributions/sarge/apt/
> 
> would copy by default my sources.list in all new vservers. Unfortunatly,
> that doesn't work. Why? Because that directory only applies to apt-rpm
> and other methods, not debootstrap.
> 
> That's a bit weird to me. I've tried to implement the "populating" that
> is done in other methods in debootstrap, without any luck. I got that
> far:
> 
> --- vserver-build.debootstrap.orig      2005-12-13 23:04:17.460313040
> -0500
> +++ vserver-build.debootstrap   2005-12-14 00:03:26.044870608 -0500
> @@ -122,6 +122,10 @@
>  tmp=$(getopt -o '+d:m:s:' --long debug -n "$0" -- "$@") || exit 1
>  eval set -- "$tmp"
>  
> +. "$_LIB_VSERVER_BUILD_FUNCTIONS_APT"
> +. "$_LIB_VSERVER_BUILD_FUNCTIONS_PKGMGMT"
> +
> +base.init
>  init
>  
>  while true; do
> @@ -155,4 +159,9 @@
>  fixupDebian "$VDIR"
>  test -z "$BUILD_INITPOST" || "$BUILD_INITPOST" "$SETUP_CONFDIR"
> "$UTIL_VSERVER_VARS"
>  
> +pkgmgmt.initVariables
> +
> +apt.initVariables
> +apt.initFilesystem
> +
>  base.setSuccess
> 
> 
> But that really does populate only a .pkg directory in some obscure
> place. I therefore suspect that this thing doesn't even works on other
> methods, but I disgress.
> 
> What I would like to see would be a way to simply have a sources.list
> available in new vserver when I create them, apart from manually copying
> it over or cloning vservers.

I assume that debootstrap generate that file for you based on
what distribution you have choosen.

That is at least what newvserver from vserver-debiantools do.

With the approach that is described in the manual you are referring to
this will break this nice feature.

Regards,

// Ola

> -- System Information:
> Debian Release: testing/unstable
>   APT prefers unstable
>   APT policy: (500, 'unstable'), (500, 'stable')
> Architecture: i386 (i686)
> Shell:  /bin/sh linked to /bin/bash
> Kernel: Linux 2.6.14-2-k7
> Locale: LANG=fr_CA, LC_CTYPE=fr_CA (charmap=ISO-8859-1)
> 
> 

-- 
 --------------------- Ola Lundqvist ---------------------------
/  [EMAIL PROTECTED]                     Annebergsslingan 37      \
|  [EMAIL PROTECTED]                 654 65 KARLSTAD          |
|  +46 (0)54-10 14 30                  +46 (0)70-332 1551       |
|  http://www.opal.dhs.org             UIN/icq: 4912500         |
\  gpg/f.p.: 7090 A92B 18FE 7994 0C36  4FE4 18A1 B1CF 0FE5 3DD9 /
 ---------------------------------------------------------------


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to