diff options
author | Daniel Baumann <daniel@debian.org> | 2010-07-24 17:06:14 +0200 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2011-03-09 19:17:15 +0100 |
commit | 74c3ad26d5d710282da6f51b746a33ad6370b8ce (patch) | |
tree | a6b80f2ddec96ad9ac94a5ba72a0f0ca9eac0bb4 /scripts/build/chroot | |
parent | c58e77942a264198c8bf00c96413968cffea8d4f (diff) | |
download | vyos-live-build-74c3ad26d5d710282da6f51b746a33ad6370b8ce.tar.gz vyos-live-build-74c3ad26d5d710282da6f51b746a33ad6370b8ce.zip |
Rearranging helpers scripts in source tree.
Diffstat (limited to 'scripts/build/chroot')
-rwxr-xr-x | scripts/build/chroot | 80 |
1 files changed, 80 insertions, 0 deletions
diff --git a/scripts/build/chroot b/scripts/build/chroot new file mode 100755 index 000000000..99f03db2e --- /dev/null +++ b/scripts/build/chroot @@ -0,0 +1,80 @@ +#!/bin/sh + +# lh_chroot(1) - customize the Debian system +# Copyright (C) 2006-2010 Daniel Baumann <daniel@debian.org> +# +# live-helper 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. + +set -e + +# Including common functions +. "${LH_BASE:-/usr/share/live-helper}"/scripts/build.sh + +# Setting static variables +DESCRIPTION="$(Echo 'customize the Debian system')" +HELP="" +USAGE="${PROGRAM} [--force]" + +Arguments "${@}" + +# Reading configuration files +Read_conffiles config/all config/common config/bootstrap config/chroot config/binary config/source +Set_defaults + +# Setup cleanup function +Setup_cleanup + +# Configuring chroot +lh chroot_cache restore ${*} +lh chroot_devpts install ${*} +lh chroot_proc install ${*} +lh chroot_selinuxfs install ${*} +lh chroot_sysfs install ${*} +lh chroot_debianchroot install ${*} +lh chroot_dpkg install ${*} +lh chroot_sysv-rc install ${*} +lh chroot_upstart install ${*} +lh chroot_hosts install ${*} +lh chroot_resolv install ${*} +lh chroot_hostname install ${*} +lh chroot_apt install ${*} +lh chroot_sources install ${*} +lh chroot_linux-image install ${*} + +# Customizing chroot +lh chroot_preseed ${*} +lh chroot_local-preseed ${*} +lh chroot_tasks ${*} +lh chroot_packageslists ${*} +lh chroot_local-packageslists ${*} +lh chroot_packages ${*} +lh chroot_local-packages ${*} +lh chroot_install-packages ${*} +lh chroot_localization ${*} +lh chroot_local-includes ${*} +lh chroot_local-patches ${*} +lh chroot_sysvinit ${*} +lh chroot_local-hooks ${*} +lh chroot_hooks ${*} +lh chroot_symlinks ${*} +lh chroot_hacks ${*} +lh chroot_interactive ${*} + +# Deconfiguring chroot +lh chroot_linux-image remove ${*} +lh chroot_sources remove ${*} +lh chroot_apt remove ${*} +lh chroot_hostname remove ${*} +lh chroot_resolv remove ${*} +lh chroot_hosts remove ${*} +lh chroot_sysv-rc remove ${*} +lh chroot_upstart remove ${*} +lh chroot_dpkg remove ${*} +lh chroot_debianchroot remove ${*} +lh chroot_sysfs remove ${*} +lh chroot_selinuxfs remove ${*} +lh chroot_proc remove ${*} +lh chroot_devpts remove ${*} +lh chroot_cache save ${*} |