X-Git-Url: https://git.grml.org/?p=grml-debootstrap.git;a=blobdiff_plain;f=chroot-script;h=bc933531be275fa5f8f0a9fc2107be50c2f55d1f;hp=6f128c168b97710738378a591a1a1de0d3e2baf4;hb=4fdbdbc3bccf62350c5fee4683ab9e701ca001f1;hpb=672ff481052805b4638746e32809c7d5262db4a2 diff --git a/chroot-script b/chroot-script index 6f128c1..bc93353 100644 --- a/chroot-script +++ b/chroot-script @@ -4,7 +4,7 @@ # Authors: grml-team (grml.org), (c) Michael Prokop # Bug-Reports: see http://grml.org/bugs/ # License: This file is licensed under the GPL v2. -# Latest change: Mon Apr 23 00:22:33 CEST 2007 [mika] +# Latest change: Mon Apr 23 12:02:03 CEST 2007 [mika] ################################################################################ set -e # exit on any error @@ -37,7 +37,7 @@ stage() { echo "$2" > "$STAGES/$1" return 0 elif grep -q done "$STAGES/$1" 2>/dev/null ; then - echo "Notice: stage $1 has been executed already, skipping execution therefore.">&2 + echo "[*] Notice: stage $1 has been executed already, skipping execution therefore.">&2 return 1 fi } @@ -65,6 +65,26 @@ grmlrepos() { deb-src http://deb.grml.org/ grml-testing main EOF + # make sure we have the keys available for aptitude + gpg --keyserver subkeys.pgp.net --recv-keys F61E2E7CECDEA787 + gpg --export F61E2E7CECDEA787 | apt-key add - || /bin/true # not yet sure + # why it's necessary, sometimes we get an error even though it works [mika] + + # make sure we install packages from grml's pool only if not available + # from Debian! + if ! grep -q grml /etc/apt/preferences 2>/dev/null ; then + cat >> /etc/apt/preferences << EOF +// debian pool (default): +Package: * +Pin: release o=Debian +Pin-Priority: 996 + +// main grml-repository: +Package: * +Pin: origin deb.grml.org +Pin-Priority: 991 +EOF + fi fi } # }}}