3
# lh_bootstrap_copy(1) - bootstrap by copying the host system
4
# Copyright (C) 2006-2009 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}"/functions.sh
15
# Setting static variables
16
DESCRIPTION="$(Echo 'bootstrap by copying the host system')"
18
USAGE="${PROGRAM} [--force]"
22
# Reading configuration files
23
Read_conffiles config/all config/common config/bootstrap config/chroot config/binary config/source
26
if [ "${LH_BOOTSTRAP}" != "copy" ]
32
Check_crossarchitecture
34
Echo_message "Begin bootstrapping system..."
36
# Ensure that a system is built as root
40
Check_stagefile .stage/bootstrap
51
tar c / --exclude /proc --exclude /sys --exclude "$(dirname ${PWD})" | tar xv
55
Create_stagefile .stage/bootstrap