Bug#372901: [Pkg-uml-devel] Bug#372901: [Pkg-uml-pkgs] Bug#372901: rootstrap: extend /etc/apt/{sources.list, preferences, apt.conf} configuration

Stefano Melchior stefano.melchior at openlabs.it
Tue Jun 13 06:45:44 UTC 2006


On Mon, Jun 12, 2006 at 08:47:09PM +0200, Mattia Dongili wrote:
Dear,
> Really? does debootstrap create a sources.list? (I'm not sure, I should
> check but I think it doesn't). I think I see what you mean,
> modules/debian:41 has '>>' but that is probably a typo :) I surely
> didn't mean to append. 
I doesn't, try to install, for instance a chroot environment [1], using 
debootstrap and you will find that /etc/apt/sources.list is empty.

[1] http://www.debian.org/doc/manuals/reference/ch-tips.en.html#s-chroot
> 
> > Perhaps overwriting could be made configurable by adding a new option to
> > rootstrap.conf.
> > 
> > Might it be useful, to configure /etc/apt/apt.conf from rootstrap.conf,
> > too?
> 
> Ah, something we surely need is adding the proxies given in
> rootstrap.conf (if any) to apt.conf, something on the line of
> if [ -n "$http_proxy ] ; then
> 	echo "Acquire::http::Proxy {\"$http_proxy\"};" > /etc/apt/apt.conf;
> fi
> if [ -n "$ftp_proxy ] ; then
> 	echo "Acquire::ftp::Proxy {\"$ftp_proxy\"};" >> /etc/apt/apt.conf;
> fi
> 
> I'm not convinced it would be really useful to grant more options or a
> full preferences file.
> Maybe it could be done in a stand-alone module which allows fine tuning
> of all apt options.

The latter is a good idea: once you have setup the most important thing,
you can proceed with a fine-tuning.
Cheers

SteX

-- 
Stefano Melchior, GPG key = D52DF829 - <stefano.melchior at openlabs.it>
http://etinarcadiaego.dyndns.org    --     http://www.stex.name
Skype ID "stefanomelchior"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 307 bytes
Desc: Digital signature
Url : http://lists.alioth.debian.org/pipermail/pkg-uml-pkgs/attachments/20060613/3e36ae25/attachment.pgp


More information about the Pkg-uml-pkgs mailing list