From 7ca02816220f36c7db5ca4fe3753990b5c4bc3b2 Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Mon, 29 Oct 2007 23:36:33 +0100 Subject: [PATCH] Support setting /etc/debian_chroot --- debian/changelog | 5 ++++- etc/grml/fai/config/hooks/instsoft.GRMLBASE | 5 ++++- etc/grml/fai/config/scripts/GRMLBASE/99-finish-grml-build | 7 ++++++- 3 files changed, 14 insertions(+), 3 deletions(-) diff --git a/debian/changelog b/debian/changelog index fc8d777..6cfebe3 100644 --- a/debian/changelog +++ b/debian/changelog @@ -15,6 +15,9 @@ grml-live (0.0.7) unstable; urgency=low during grml-live execution - do not re-execute grml-live is the target ISO exists already * Set /etc/grml_version of live-system to the according value. + [Closes: issue322] + * Support setting /etc/debian_chroot inside chroot (useful if + building fails and manual interaction is needed). * Log to /var/log/grml-live.log by default now and support $ZERO_LOGFILE for cleaning up logs. * Added new grml-repository named grml-live which is intented @@ -31,7 +34,7 @@ grml-live (0.0.7) unstable; urgency=low with /etc/grml/fai/apt/preferences so grml-live repository can be used and configured at a single place. * Use apt-pinning via /etc/grml/fai/config/hooks/instsoft.GRMLBASE - already and remove it from /etc/grml/fai/config/scripts/GRMLBASE/33-aptsetup + and drop 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" diff --git a/etc/grml/fai/config/hooks/instsoft.GRMLBASE b/etc/grml/fai/config/hooks/instsoft.GRMLBASE index 441b009..f47a91d 100755 --- a/etc/grml/fai/config/hooks/instsoft.GRMLBASE +++ b/etc/grml/fai/config/hooks/instsoft.GRMLBASE @@ -4,12 +4,15 @@ # Authors: grml-team (grml.org), (c) Michael Prokop # Bug-Reports: see http://grml.org/bugs/ # License: This file is licensed under the GPL v2 or any later version. -# Latest change: Sat Oct 27 02:15:35 CEST 2007 [mika] +# Latest change: Mon Okt 29 23:35:34 CET 2007 [mika] ################################################################################ set -u set -e +# visualize chroot inside zsh: +echo grml_chroot > $target/etc/debian_chroot + if [ "$FAI_ACTION" = "softupdate" ] ; then echo "Softupdate" # make sure we prefer grml repository: diff --git a/etc/grml/fai/config/scripts/GRMLBASE/99-finish-grml-build b/etc/grml/fai/config/scripts/GRMLBASE/99-finish-grml-build index 4d727bc..bab5277 100755 --- a/etc/grml/fai/config/scripts/GRMLBASE/99-finish-grml-build +++ b/etc/grml/fai/config/scripts/GRMLBASE/99-finish-grml-build @@ -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 or any later version. -# Latest change: Mon Oct 15 19:12:13 CEST 2007 [mika] +# Latest change: Mon Okt 29 10:46:02 CET 2007 [mika] ################################################################################ set -u @@ -16,6 +16,11 @@ if [ -r $target/etc/apt/apt.conf ] ; then sed -i "s#Acquire::http::Pipeline-Depth.*#// &#" $target/etc/apt/apt.conf fi +# remove an existing /etc/debian_chroot file: +if [ -r $target/etc/debian_chroot ] ; then + rm -f $target/etc/debian_chroot +fi + # /etc/grml_cd makes the live system recognizable as a live system touch $target/etc/grml_cd -- 2.1.4