summaryrefslogtreecommitdiff
path: root/scripts/build/bootstrap
diff options
context:
space:
mode:
authorjnqnfe <jnqnfe@gmail.com>2015-02-05 03:30:47 +0000
committerLuca Boccassi <bluca@debian.org>2020-03-10 12:39:37 +0000
commit061d7cb3406c99a8bbb7b563625fe00357ba90aa (patch)
tree3ea895f03cb6323a2fc49404a5c7cbc6beeb6c62 /scripts/build/bootstrap
parentb49abcc1a8002c52b45c3e3da6723097f99c26e6 (diff)
downloadvyos-live-build-061d7cb3406c99a8bbb7b563625fe00357ba90aa.tar.gz
vyos-live-build-061d7cb3406c99a8bbb7b563625fe00357ba90aa.zip
tidy script init (2/4) - build stage scripts
Partial fix for #952919 Gbp-Dch: Short
Diffstat (limited to 'scripts/build/bootstrap')
-rwxr-xr-xscripts/build/bootstrap14
1 files changed, 5 insertions, 9 deletions
diff --git a/scripts/build/bootstrap b/scripts/build/bootstrap
index aa6ee51c4..c2614ebc0 100755
--- a/scripts/build/bootstrap
+++ b/scripts/build/bootstrap
@@ -13,23 +13,19 @@ set -e
# Including common functions
[ -e "${LIVE_BUILD}/scripts/build.sh" ] && . "${LIVE_BUILD}/scripts/build.sh" || . /usr/lib/live/build.sh
-# Automatically populating config tree
-if [ -x auto/config ] && [ ! -e .build/config ]
-then
- Echo_message "Automatically populating config tree."
- lb config
-fi
-
# Setting static variables
DESCRIPTION="Bootstrap a Debian system"
HELP=""
USAGE="${PROGRAM} [--force]"
+# Automatically populating config tree
+Auto_build_config
+
# Processing arguments and configuration files
Init_config_data "${@}"
-# Setup cleanup function
-Setup_cleanup
+# Setting up cleanup function
+Setup_clean_exit
# Bootstrapping system
lb bootstrap_cache restore ${@}