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

Mattia Dongili malattia at linux.it
Mon Jun 12 18:47:09 UTC 2006


On Mon, Jun 12, 2006 at 02:41:42PM +0200, Andreas Beckmann wrote:
> Package: rootstrap
> Version: 0.3.22-1
> Severity: wishlist
> Tags: patch
> 
> Hi,
> 
> the ability to initialize /etc/apt/sources.list from rootstrap.conf is a
> nice feature. Based on this, I wrote a patch for rootstrap to configure
> /etc/apt/preferences, too. (rootstrap-apt-preferences.patch)

oh, you probably forgot to diff modules/debian for the other part of the
patch, the one which actually writes the file :)

> Is it useful to append the sources.list from rootstrap.conf to the
> sources.list created by apt (as it's currently done) or would it be
> better to replace the sources.list? (Currently the sources.list from apt
> is overridden by a default entry made by modules/debian if no sources
> list is given in rootstrap.conf.

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. 

> 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.

bye
-- 
mattia
:wq!




More information about the Pkg-uml-pkgs mailing list