bab5277769c34658bbe725af15b4dcc4bfcc3716
[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: Mon Okt 29 10:46:02 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 fi
18
19 # remove an existing /etc/debian_chroot file:
20 if [ -r $target/etc/debian_chroot ] ; then
21    rm -f $target/etc/debian_chroot
22 fi
23
24 # /etc/grml_cd makes the live system recognizable as a live system
25 touch $target/etc/grml_cd
26
27 ## END OF FILE #################################################################
28 # vim:ft=sh expandtab ai tw=80 tabstop=4 shiftwidth=3