3
# lh_bootstrap_copy(1) - bootstrap by copying the host system
4
# Copyright (C) 2006-2007 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="${LH_BASE:-/usr/share/live-helper}"
15
for FUNCTION in "${LH_BASE}"/functions/*.sh
20
# Setting static variables
21
DESCRIPTION="bootstrap by copying the host system"
23
USAGE="${PROGRAM} [--force]"
27
# Reading configuration files
28
Read_conffile config/common
29
Read_conffile config/bootstrap
30
Read_conffile config/chroot
31
Read_conffile config/binary
32
Read_conffile config/source
35
if [ "${LH_BOOTSTRAP}" != "copy" ]
40
Echo_message "Begin bootstrapping system..."
42
# Ensure that a system is built as root
46
Check_stagefile .stage/bootstrap
55
find / ! -name /proc ! -name /sys ! -name "`dirname ${PWD}`" | xargs cp -a chroot
58
Create_stagefile .stage/bootstrap