Disable Recommends inside chroot installation
[grml-live.git] / etc / grml / fai / config / scripts / GRMLBASE / 99-finish-grml-build
1 #!/bin/sh
2 # Filename:      /etc/grml/fai/config/scripts/GRMLBASE/99-finish-grml-build
3 # Purpose:       finalize grml chroot build
4 # Authors:       grml-team (grml.org), (c) Michael Prokop <mika@grml.org>
5 # Bug-Reports:   see http://grml.org/bugs/
6 # License:       This file is licensed under the GPL v2 or any later version.
7 # Latest change: Thu Nov 01 16:19:52 CET 2007 [mika]
8 ################################################################################
9
10 set -u
11 set -e
12
13 # Restore usual Debian behaviour which has been changed
14 # for FAI via /etc/grml/fai/config/hooks/instsoft.GRMLBASE
15 if [ -r $target/etc/apt/apt.conf ] ; then
16    sed -i "s#Acquire::http::Pipeline-Depth.*#// &#" $target/etc/apt/apt.conf
17    sed -i "s#APT::Install-Recommends.*#// &#"       $target/etc/apt/apt.conf
18 fi
19
20
21
22 # remove an existing /etc/debian_chroot file:
23 if [ -r $target/etc/debian_chroot ] ; then
24    rm -f $target/etc/debian_chroot
25 fi
26
27 # /etc/grml_cd makes the live system recognizable as a live system
28 touch $target/etc/grml_cd
29
30 ## END OF FILE #################################################################
31 # vim:ft=sh expandtab ai tw=80 tabstop=4 shiftwidth=3