live-build/helpers/chroot

81 lines
2.1 KiB
Plaintext
Raw Normal View History

2007-09-23 08:04:40 +00:00
#!/bin/sh
2007-09-23 08:04:46 +00:00
# lh_chroot(1) - customize the Debian system
# Copyright (C) 2006-2010 Daniel Baumann <daniel@debian.org>
2007-09-23 08:04:48 +00:00
#
# 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
2007-09-23 08:04:40 +00:00
2007-09-23 08:05:11 +00:00
# Including common functions
2009-11-22 12:40:20 -01:00
. "${LH_BASE:-/usr/share/live-helper}"/live-helper.sh
2007-09-23 08:04:46 +00:00
2007-09-23 08:05:11 +00:00
# Setting static variables
DESCRIPTION="$(Echo 'customize the Debian system')"
2007-09-23 08:04:48 +00:00
HELP=""
USAGE="${PROGRAM} [--force]"
Arguments "${@}"
2007-09-23 08:04:46 +00:00
# Reading configuration files
Read_conffiles config/all config/common config/bootstrap config/chroot config/binary config/source
2007-09-23 08:04:46 +00:00
Set_defaults
# Setup cleanup function
Setup_cleanup
2007-09-23 08:04:46 +00:00
# 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 ${*}
2007-09-23 08:04:46 +00:00
# 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 ${*}
2007-09-23 08:04:46 +00:00
# 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 ${*}