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
|
2009-01-26 15:39:27 -01:00
|
|
|
# Copyright (C) 2006-2009 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
|
2009-01-15 01:37:42 -01:00
|
|
|
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
|
2008-10-28 14:26:17 -01:00
|
|
|
Read_conffiles config/all config/common config/bootstrap config/chroot config/binary config/source
|
2007-09-23 08:04:46 +00:00
|
|
|
Set_defaults
|
|
|
|
|
2008-10-19 15:58:16 +00:00
|
|
|
# Setup cleanup function
|
|
|
|
Setup_cleanup
|
|
|
|
|
2007-09-23 08:04:46 +00:00
|
|
|
# Configuring chroot
|
2009-10-20 18:40:09 +00:00
|
|
|
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_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
|
2009-10-20 18:40:09 +00:00
|
|
|
lh chroot_preseed ${*}
|
|
|
|
lh chroot_local-preseed ${*}
|
|
|
|
lh chroot_tasks ${*}
|
|
|
|
lh chroot_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
|
2009-10-20 18:40:09 +00:00
|
|
|
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_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 ${*}
|