source: live-build/trunk/fuentes/scripts/build/lb_bootstrap

Last change on this file was 900, checked in by kbut, 4 years ago

add original source

  • Property svn:executable set to *
File size: 1.2 KB
Line 
1#!/bin/sh
2
3## live-build(7) - System Build Scripts
4## Copyright (C) 2006-2012 Daniel Baumann <daniel@debian.org>
5##
6## This program 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.
9
10
11set -e
12
13# Including common functions
14( . "${LIVE_BUILD}/scripts/build.sh" > /dev/null 2>&1 || true ) || . /usr/lib/live/build.sh
15
16# Automatically populating config tree
17if [ -x auto/config ] && [ ! -e .build/config ]
18then
19        Echo_message "Automatically populating config tree."
20        lb config
21fi
22
23# Setting static variables
24DESCRIPTION="$(Echo 'bootstrap a Debian system')"
25HELP=""
26USAGE="${PROGRAM} [--force]"
27
28Arguments "${@}"
29
30# Reading configuration files
31Read_conffiles config/all config/common config/bootstrap config/chroot config/binary config/source
32Set_defaults
33
34# Setup cleanup function
35Setup_cleanup
36
37# Bootstrapping system
38lb bootstrap_cache restore ${*}
39lb bootstrap_copy ${*}
40lb bootstrap_cdebootstrap ${*}
41lb bootstrap_debootstrap ${*}
42lb bootstrap_cache save ${*}
43
44# Temporary hack until we have multistrap in place
45case "${LB_MODE}" in
46        progress)
47                echo '0.0.0' > chroot/etc/progress_version
48                ;;
49esac
Note: See TracBrowser for help on using the repository browser.