From 185b4bb07f13af2b2c7e5596aada688e9447e126 Mon Sep 17 00:00:00 2001 From: Andres Salomon Date: Fri, 29 May 2009 14:57:18 -0400 Subject: [PATCH] mkchroot: add a debian-lenny-i386 image This is a small (~300MB) Debian Lenny image for i386 (with a 686 kernel). No X, it's just a super-quick way to load debian on a machine. Signed-off-by: Andres Salomon --- configs/debian-lenny-i386/DESCRIPTION | 1 + configs/debian-lenny-i386/hooks | 60 +++++++++++++++++++++++++++ configs/debian-lenny-i386/packages | 18 ++++++++ configs/debian-lenny-i386/variables | 22 ++++++++++ 4 files changed, 101 insertions(+) create mode 100644 configs/debian-lenny-i386/DESCRIPTION create mode 100644 configs/debian-lenny-i386/hooks create mode 100644 configs/debian-lenny-i386/packages create mode 100644 configs/debian-lenny-i386/variables diff --git a/configs/debian-lenny-i386/DESCRIPTION b/configs/debian-lenny-i386/DESCRIPTION new file mode 100644 index 0000000..22e5cb0 --- /dev/null +++ b/configs/debian-lenny-i386/DESCRIPTION @@ -0,0 +1 @@ +This is a generic Debian Lenny image/installer. diff --git a/configs/debian-lenny-i386/hooks b/configs/debian-lenny-i386/hooks new file mode 100644 index 0000000..e470880 --- /dev/null +++ b/configs/debian-lenny-i386/hooks @@ -0,0 +1,60 @@ +# Default hooks - copy & customize this for a new image build +# +# Copyright © 2008-2009 Andres Salomon +# +# This file is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + +customize_chroot_hook() +{ + ROOT_DIR="$1" + + # Any customizations that need to be made to the chroot after the base system + # has been installed (but prior to custom package installation) should be + # put here. $ROOT_DIR should be prefixed to any paths. + + # attempt to keep the install footprint small by not installing recommends + cat >${ROOT_DIR}/etc/apt/apt.conf<