Warning!

Notice: the grml team is migrating from Mercurial to Git.
Please visit git.grml.org instead!

Use apt-pinning via /etc/grml/fai/config/hooks/instsoft.GRMLBASE
authorMichael Prokop <mika@grml.org>
Wed Oct 24 14:32:47 2007 +0200 (13 months ago)
changeset 211aa8dae4e70b4
manifestaa8dae4e70b4
parent 210869d4a2115e0
child 212435cce08cbb8
Use apt-pinning via /etc/grml/fai/config/hooks/instsoft.GRMLBASE
debian/changelog
etc/grml/fai/config/hooks/instsoft.GRMLBASE
etc/grml/fai/config/scripts/GRMLBASE/33-aptsetup
--- a/debian/changelog Wed Oct 24 13:05:42 2007 +0200
+++ b/debian/changelog Wed Oct 24 14:32:47 2007 +0200
@@ -10,6 +10,8 @@ grml-live (0.0.7) unstable; urgency=low
during grml-live execution
* Added new grml-repository named grml-live which is intented
to fix issues from Debian for grml-live builds.
+ * Use apt-pinning via /etc/grml/fai/config/hooks/instsoft.GRMLBASE
+ already and remove it from /etc/grml/fai/config/scripts/GRMLBASE/33-aptsetup
* Display version number of grml-live.
* Log executed grml-live command line.
* Set FAI_DEBOOTSTRAP_OPTS="--exclude=dhcp-client,info"
--- a/etc/grml/fai/config/hooks/instsoft.GRMLBASE Wed Oct 24 13:05:42 2007 +0200
+++ b/etc/grml/fai/config/hooks/instsoft.GRMLBASE Wed Oct 24 14:32:47 2007 +0200
@@ -4,7 +4,7 @@
# Authors: grml-team (grml.org), (c) Michael Prokop <mika@grml.org>
# Bug-Reports: see http://grml.org/bugs/
# License: This file is licensed under the GPL v2 or any later version.
-# Latest change: Thu Oct 18 14:18:44 CEST 2007 [mika]
+# Latest change: Mit Okt 24 14:30:53 CEST 2007 [mika]
################################################################################
set -u
@@ -19,6 +19,11 @@ gpg --keyserver blackhole.pca.dfn.de --r
gpg --keyserver blackhole.pca.dfn.de --recv-keys F61E2E7CECDEA787
gpg --export F61E2E7CECDEA787 > $target/etc/apt/grml.key
$ROOTCMD apt-key add /etc/apt/grml.key
+
+# make sure we prefer grml repository:
+if [ -r /etc/grml/fai/files/etc/apt/preferences ] ; then
+ cp /etc/grml/fai/files/etc/apt/preferences $target/etc/apt/preferences
+fi
# make sure we have file-rc available before
# package_config/GRML is being executed:
--- a/etc/grml/fai/config/scripts/GRMLBASE/33-aptsetup Wed Oct 24 13:05:42 2007 +0200
+++ b/etc/grml/fai/config/scripts/GRMLBASE/33-aptsetup Wed Oct 24 14:32:47 2007 +0200
@@ -4,7 +4,7 @@
# Authors: grml-team (grml.org), (c) Michael Prokop <mika@grml.org>
# Bug-Reports: see http://grml.org/bugs/
# License: This file is licensed under the GPL v2 or any later version.
-# Latest change: Sun Sep 16 23:10:06 CEST 2007 [mika]
+# Latest change: Mit Okt 24 14:30:39 CEST 2007 [mika]
################################################################################
set -u
@@ -14,9 +14,9 @@ rm -f $target/etc/apt/sources.list
$ROOTCMD ln -s /etc/apt/sources.list.grml /etc/apt/sources.list
-if [ -r /etc/grml/fai/files/etc/apt/preferences ] ; then
- cp /etc/grml/fai/files/etc/apt/preferences $target/etc/apt/preferences
-fi
+#if [ -r /etc/grml/fai/files/etc/apt/preferences ] ; then
+# cp /etc/grml/fai/files/etc/apt/preferences $target/etc/apt/preferences
+#fi
## END OF FILE #################################################################
# vim:ft=sh expandtab ai tw=80 tabstop=4 shiftwidth=3