this patch now contains both parts: the patches for rootstrap.conf and modules/debian
Andreas
--- 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 diff -ur modules.org1/debian modules/debian --- modules.org1/debian 2006-05-28 21:12:40.000000000 +0200 +++ modules/debian 2006-06-12 04:42:40.000000000 +0200 @@ -43,6 +43,11 @@ echo "deb $mirror $dist main" > $TARGET/etc/apt/sources.list fi +# populate /etc/apt/preferences +if test -n "$preferences"; then + echo "$preferences" >> $TARGET/etc/apt/preferences +fi + rm -f $TARGET/var/lib/apt/lists/debootstrap.* if test -z "$keepdebs"; then