bootstrap 890 Bytes
Newer Older
1
2
3
#!/bin/sh

# lh_bootstrap(1) - bootstrap a Debian system
4
# Copyright (C) 2006-2010 Daniel Baumann <daniel@debian.org>
5
6
7
8
#
# live-helper 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.
9
10
11

set -e

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

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

Arguments "${@}"

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

26
27
28
# Setup cleanup function
Setup_cleanup

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