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

Andreas Beckmann debian at abeckmann.de
Mon Jun 12 12:41:42 UTC 2006


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)

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

If want, I can create and provide patches.


Andreas

-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (500, 'testing'), (500, 'stable'), (300, 'unstable'), (30, 'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.16-1-vserver-k7
Locale: LANG=C, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)

Versions of packages rootstrap depends on:
ii  debootstrap                 0.3.3        Bootstrap a basic Debian system
ii  dpkg                        1.13.19      package maintenance system for Deb
ii  python                      2.3.5-5      An interactive high-level object-o
ii  user-mode-linux             2.6.16-2um-1 User-mode Linux (kernel)

Versions of packages rootstrap recommends:
ii  uml-utilities                 20060323-3 User-mode Linux (utility programs)

-- no debconf information
-------------- next part --------------
--- rootstrap.conf.org1	2006-05-28 21:12:40.000000000 +0200
+++ rootstrap.conf	2006-06-12 04:38:22.000000000 +0200
@@ -112,7 +112,7 @@
 # Extra packages to install via apt after initial debootstrap install
 #install=myfavoritepackage someotherpackage
 
-# Sources for target's sources list. If no value is give the default
+# Sources for target's sources list. If no value is given the default
 # is to use the main section of $mirror
 # NOTE: you can provide multiple lines if each new line is indented
 # with blank spaces
@@ -120,6 +120,15 @@
 # deb http://security.debian.org/ stable/updates main contrib non-free
 # deb http://http.us.debian.org/debian sarge main contrib non-free
 
+# Entries for target's /etc/apt/preferences
+# NOTE: you can provide multiple lines if each new line is indented
+# with blank spaces
+#preferences=
+# Explanation: unstable gets less preference
+# Package: *
+# Pin: release unstable
+# Pin-Priority: 300
+
 [base-config]
 root_password=rootstrap
 


More information about the Pkg-uml-pkgs mailing list