3
# lh_source(1) - build source images
4
# Copyright (C) 2006-2010 Daniel Baumann <daniel@debian.org>
6
# live-helper comes with ABSOLUTELY NO WARRANTY; for details see COPYING.
7
# This is free software, and you are welcome to redistribute it
8
# under certain conditions; see COPYING for details.
12
# Including common functions
13
. "${LH_BASE:-/usr/share/live-helper}"/scripts/build.sh
15
# Setting static variables
16
DESCRIPTION="$(Echo 'build source images')"
18
USAGE="${PROGRAM} [--force]"
22
# Reading configuration files
23
Read_conffiles config/all config/common config/bootstrap config/chroot config/binary config/source
26
Require_stagefile .stage/chroot_install-packages
28
# Setup cleanup function
31
# Enabling network in chroot
32
lh chroot_hosts install ${*}
33
lh chroot_resolv install ${*}
34
lh chroot_hostname install ${*}
35
lh chroot_sources install ${*}
38
lh source_debian-live ${*}
41
lh source_checksums ${*}
48
lh source_virtual-hdd ${*}
50
# Deconfiguring chroot
51
rm -f .stage/chroot_sources
52
lh chroot_hostname remove ${*}
53
lh chroot_resolv remove ${*}
54
lh chroot_hosts remove ${*}