bootstrap 888 Bytes
Newer Older
1
2
#!/bin/sh

3
4
5
6
7
8
9
## live-build(7) - System Build Scripts
## Copyright (C) 2006-2010 Daniel Baumann <daniel@debian.org>
##
## live-build comes with ABSOLUTELY NO WARRANTY; for details see COPYING.
## This is free software, and you are welcome to redistribute it
## under certain conditions; see COPYING for details.

10
11
12

set -e

13
# Including common functions
14
. "${LH_BASE:-/usr/share/live/build}"/scripts/build.sh
15

16
# Setting static variables
17
DESCRIPTION="$(Echo 'bootstrap a Debian system')"
18
19
20
21
22
HELP=""
USAGE="${PROGRAM} [--force]"

Arguments "${@}"

23
# Reading configuration files
24
Read_conffiles config/all config/common config/bootstrap config/chroot config/binary config/source
25
26
Set_defaults

27
28
29
# Setup cleanup function
Setup_cleanup

30
# Bootstrapping system
31
32
33
34
35
lb bootstrap_cache restore ${*}
lb bootstrap_copy ${*}
lb bootstrap_cdebootstrap ${*}
lb bootstrap_debootstrap ${*}
lb bootstrap_cache save ${*}