live-build/scripts/build/bootstrap

44 lines
1.1 KiB
Plaintext
Raw Normal View History

2007-09-23 08:04:46 +00:00
#!/bin/sh
## live-build(7) - System Build Scripts
## Copyright (C) 2016-2020 The Debian Live team
## Copyright (C) 2006-2015 Daniel Baumann <mail@daniel-baumann.ch>
##
## This program 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.
2007-09-23 08:04:46 +00:00
set -e
2007-09-23 08:05:11 +00:00
# Including common functions
[ -e "${LIVE_BUILD}/scripts/build.sh" ] && . "${LIVE_BUILD}/scripts/build.sh" || . /usr/lib/live/build.sh
2007-09-23 08:04:46 +00:00
2007-09-23 08:05:11 +00:00
# Setting static variables
DESCRIPTION="Bootstrap a Debian system"
2007-09-23 08:04:48 +00:00
USAGE="${PROGRAM} [--force]"
# Automatically populating config tree
Auto_build_config
# Processing arguments and configuration files
Init_config_data "${@}"
2007-09-23 08:04:46 +00:00
# Setting up cleanup function
Setup_clean_exit
2007-09-23 08:04:46 +00:00
# Bootstrapping system
lb bootstrap_cache restore "${@}"
lb bootstrap_debootstrap "${@}"
lb bootstrap_cache save "${@}"
# Configuring chroot
lb chroot_prep install all-except-archives "${@}"
lb bootstrap_archives binary "${@}"
# Deconfiguring chroot
lb chroot_prep remove all-except-archives "${@}"
Echo_message "Bootstrap stage completed"