summaryrefslogtreecommitdiff
path: root/helpers
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2007-09-23 10:05:18 +0200
committerDaniel Baumann <daniel@debian.org>2011-03-09 18:22:26 +0100
commit28dac4f4381e67febcf7612059340d51c667fa52 (patch)
tree3e333d0f2f1fbf89a394dfb1c536e0aa3ac231c6 /helpers
parent0d0de885e32ff67d57bb7def451b62d75b8920ab (diff)
downloadlive-build-28dac4f4381e67febcf7612059340d51c667fa52.zip
live-build-28dac4f4381e67febcf7612059340d51c667fa52.tar.gz
Adding live-helper 1.0~a23-1.
Diffstat (limited to 'helpers')
-rwxr-xr-xhelpers/lh_binary1
-rwxr-xr-xhelpers/lh_binary_chroot1
-rwxr-xr-xhelpers/lh_binary_debian-installer1
-rwxr-xr-xhelpers/lh_binary_disk1
-rwxr-xr-xhelpers/lh_binary_encryption1
-rwxr-xr-xhelpers/lh_binary_grub1
-rwxr-xr-xhelpers/lh_binary_includes1
-rwxr-xr-xhelpers/lh_binary_iso1
-rwxr-xr-xhelpers/lh_binary_linux-image3
-rwxr-xr-xhelpers/lh_binary_local-hooks1
-rwxr-xr-xhelpers/lh_binary_local-includes1
-rwxr-xr-xhelpers/lh_binary_manifest1
-rwxr-xr-xhelpers/lh_binary_md5sum3
-rwxr-xr-xhelpers/lh_binary_memtest4
-rwxr-xr-xhelpers/lh_binary_net1
-rwxr-xr-xhelpers/lh_binary_rootfs1
-rwxr-xr-xhelpers/lh_binary_syslinux1
-rwxr-xr-xhelpers/lh_binary_tar1
-rwxr-xr-xhelpers/lh_binary_usb-hdd1
-rwxr-xr-xhelpers/lh_binary_yaboot1
-rwxr-xr-xhelpers/lh_bootstrap1
-rwxr-xr-xhelpers/lh_bootstrap_cache1
-rwxr-xr-xhelpers/lh_bootstrap_cdebootstrap1
-rwxr-xr-xhelpers/lh_bootstrap_copy1
-rwxr-xr-xhelpers/lh_bootstrap_debootstrap1
-rwxr-xr-xhelpers/lh_chroot3
-rwxr-xr-xhelpers/lh_chroot_apt1
-rwxr-xr-xhelpers/lh_chroot_cache1
-rwxr-xr-xhelpers/lh_chroot_debianchroot1
-rwxr-xr-xhelpers/lh_chroot_dpkg88
-rwxr-xr-xhelpers/lh_chroot_hacks1
-rwxr-xr-xhelpers/lh_chroot_hooks1
-rwxr-xr-xhelpers/lh_chroot_hostname1
-rwxr-xr-xhelpers/lh_chroot_hosts1
-rwxr-xr-xhelpers/lh_chroot_interactive1
-rwxr-xr-xhelpers/lh_chroot_linux-image1
-rwxr-xr-xhelpers/lh_chroot_local-hooks1
-rwxr-xr-xhelpers/lh_chroot_local-includes1
-rwxr-xr-xhelpers/lh_chroot_local-packages1
-rwxr-xr-xhelpers/lh_chroot_local-packageslists1
-rwxr-xr-xhelpers/lh_chroot_local-preseed1
-rwxr-xr-xhelpers/lh_chroot_localization1
-rwxr-xr-xhelpers/lh_chroot_packages1
-rwxr-xr-xhelpers/lh_chroot_packageslists1
-rwxr-xr-xhelpers/lh_chroot_preseed1
-rwxr-xr-xhelpers/lh_chroot_proc1
-rwxr-xr-xhelpers/lh_chroot_resolv1
-rwxr-xr-xhelpers/lh_chroot_sources1
-rwxr-xr-xhelpers/lh_chroot_symlinks1
-rwxr-xr-xhelpers/lh_chroot_sysfs1
-rwxr-xr-xhelpers/lh_chroot_sysv-rc1
-rwxr-xr-xhelpers/lh_chroot_sysvinit1
-rwxr-xr-xhelpers/lh_chroot_tasks1
-rwxr-xr-xhelpers/lh_clean2
-rwxr-xr-xhelpers/lh_config1
-rwxr-xr-xhelpers/lh_losetup1
-rwxr-xr-xhelpers/lh_source1
-rwxr-xr-xhelpers/lh_source_debian1
-rwxr-xr-xhelpers/lh_source_debian-live1
-rwxr-xr-xhelpers/lh_source_disk1
-rwxr-xr-xhelpers/lh_source_iso1
-rwxr-xr-xhelpers/lh_source_md5sum1
-rwxr-xr-xhelpers/lh_source_net1
-rwxr-xr-xhelpers/lh_source_tar1
-rwxr-xr-xhelpers/lh_source_usb-hdd1
-rwxr-xr-xhelpers/lh_testroot1
66 files changed, 160 insertions, 3 deletions
diff --git a/helpers/lh_binary b/helpers/lh_binary
index 4a1577d..b516789 100755
--- a/helpers/lh_binary
+++ b/helpers/lh_binary
@@ -30,6 +30,7 @@ Read_conffile config/bootstrap
Read_conffile config/chroot
Read_conffile config/binary
Read_conffile config/source
+Read_conffile "${LH_CONFIG}"
Set_defaults
# Preparing root filesystem
diff --git a/helpers/lh_binary_chroot b/helpers/lh_binary_chroot
index 150d6b1..c40afc9 100755
--- a/helpers/lh_binary_chroot
+++ b/helpers/lh_binary_chroot
@@ -30,6 +30,7 @@ Read_conffile config/bootstrap
Read_conffile config/chroot
Read_conffile config/binary
Read_conffile config/source
+Read_conffile "${LH_CONFIG}"
Set_defaults
Echo_message "Begin copying chroot..."
diff --git a/helpers/lh_binary_debian-installer b/helpers/lh_binary_debian-installer
index 6ae67cd..b407878 100755
--- a/helpers/lh_binary_debian-installer
+++ b/helpers/lh_binary_debian-installer
@@ -30,6 +30,7 @@ Read_conffile config/bootstrap
Read_conffile config/chroot
Read_conffile config/binary
Read_conffile config/source
+Read_conffile "${LH_CONFIG}"
Set_defaults
# Setting remote d-i directories
diff --git a/helpers/lh_binary_disk b/helpers/lh_binary_disk
index 5543949..65470be 100755
--- a/helpers/lh_binary_disk
+++ b/helpers/lh_binary_disk
@@ -30,6 +30,7 @@ Read_conffile config/bootstrap
Read_conffile config/chroot
Read_conffile config/binary
Read_conffile config/source
+Read_conffile "${LH_CONFIG}"
Set_defaults
if [ "${LH_BINARY_IMAGES}" != "iso" ]
diff --git a/helpers/lh_binary_encryption b/helpers/lh_binary_encryption
index 0fb9b7e..4d9a0e7 100755
--- a/helpers/lh_binary_encryption
+++ b/helpers/lh_binary_encryption
@@ -30,6 +30,7 @@ Read_conffile config/bootstrap
Read_conffile config/chroot
Read_conffile config/binary
Read_conffile config/source
+Read_conffile "${LH_CONFIG}"
Set_defaults
if [ -z "${LH_ENCRYPTION}" ]
diff --git a/helpers/lh_binary_grub b/helpers/lh_binary_grub
index ccb7153..b3ea4a0 100755
--- a/helpers/lh_binary_grub
+++ b/helpers/lh_binary_grub
@@ -30,6 +30,7 @@ Read_conffile config/bootstrap
Read_conffile config/chroot
Read_conffile config/binary
Read_conffile config/source
+Read_conffile "${LH_CONFIG}"
Set_defaults
if [ "${LH_BOOTLOADER}" != "grub" ]
diff --git a/helpers/lh_binary_includes b/helpers/lh_binary_includes
index b426a68..83f207e 100755
--- a/helpers/lh_binary_includes
+++ b/helpers/lh_binary_includes
@@ -30,6 +30,7 @@ Read_conffile config/bootstrap
Read_conffile config/chroot
Read_conffile config/binary
Read_conffile config/source
+Read_conffile "${LH_CONFIG}"
Set_defaults
if [ "${LH_INCLUDES}" = "none" ]
diff --git a/helpers/lh_binary_iso b/helpers/lh_binary_iso
index 7da3da8..8b00a3d 100755
--- a/helpers/lh_binary_iso
+++ b/helpers/lh_binary_iso
@@ -30,6 +30,7 @@ Read_conffile config/bootstrap
Read_conffile config/chroot
Read_conffile config/binary
Read_conffile config/source
+Read_conffile "${LH_CONFIG}"
Set_defaults
if ! echo "${LH_BINARY_IMAGES}" | grep -qs iso
diff --git a/helpers/lh_binary_linux-image b/helpers/lh_binary_linux-image
index fb5ab98..33c2fbb 100755
--- a/helpers/lh_binary_linux-image
+++ b/helpers/lh_binary_linux-image
@@ -30,6 +30,7 @@ Read_conffile config/bootstrap
Read_conffile config/chroot
Read_conffile config/binary
Read_conffile config/source
+Read_conffile "${LH_CONFIG}"
Set_defaults
Echo_message "Begin install linux-image..."
@@ -108,7 +109,7 @@ case "${LH_INITRAMFS}" in
casper)
# Checking casper templates
Check_templates casper
- cp "${TEMPLATES}"/casper/parameters.txt "${DESTDIR}"/parameters.txt
+ cp "${TEMPLATES}"/parameters.txt "${DESTDIR}"/parameters.txt
;;
live-initramfs)
diff --git a/helpers/lh_binary_local-hooks b/helpers/lh_binary_local-hooks
index e758247..7e469b4 100755
--- a/helpers/lh_binary_local-hooks
+++ b/helpers/lh_binary_local-hooks
@@ -30,6 +30,7 @@ Read_conffile config/bootstrap
Read_conffile config/chroot
Read_conffile config/binary
Read_conffile config/source
+Read_conffile "${LH_CONFIG}"
Set_defaults
Echo_message "Begin executing local hooks..."
diff --git a/helpers/lh_binary_local-includes b/helpers/lh_binary_local-includes
index 84434c5..6d0f346 100755
--- a/helpers/lh_binary_local-includes
+++ b/helpers/lh_binary_local-includes
@@ -30,6 +30,7 @@ Read_conffile config/bootstrap
Read_conffile config/chroot
Read_conffile config/binary
Read_conffile config/source
+Read_conffile "${LH_CONFIG}"
Set_defaults
Echo_message "Begin copying binary local includes..."
diff --git a/helpers/lh_binary_manifest b/helpers/lh_binary_manifest
index 779d2ed..0eabd8b 100755
--- a/helpers/lh_binary_manifest
+++ b/helpers/lh_binary_manifest
@@ -30,6 +30,7 @@ Read_conffile config/bootstrap
Read_conffile config/chroot
Read_conffile config/binary
Read_conffile config/source
+Read_conffile "${LH_CONFIG}"
Set_defaults
Echo_message "Begin creating manifest..."
diff --git a/helpers/lh_binary_md5sum b/helpers/lh_binary_md5sum
index cb901c8..9b0d81d 100755
--- a/helpers/lh_binary_md5sum
+++ b/helpers/lh_binary_md5sum
@@ -30,6 +30,7 @@ Read_conffile config/bootstrap
Read_conffile config/chroot
Read_conffile config/binary
Read_conffile config/source
+Read_conffile "${LH_CONFIG}"
Set_defaults
Echo_message "Begin creating binary md5sum.txt..."
@@ -54,7 +55,7 @@ fi
# Calculating md5sums
cd binary
-find . -type f | sort | grep -v 'isolinux/isolinux.bin' | grep -v 'boot/grub/stage2_eltorito' | xargs md5sum > ../md5sum.txt
+find . -type f | sort | grep -v 'isolinux/isolinux.bin' | grep -v 'boot/grub/stage2_eltorito' | xargs -I{} md5sum "{}" > ../md5sum.txt
cat > md5sum.txt << EOF
This file contains the list of md5 checksums of all files on this medium.
diff --git a/helpers/lh_binary_memtest b/helpers/lh_binary_memtest
index 28621f6..2985285 100755
--- a/helpers/lh_binary_memtest
+++ b/helpers/lh_binary_memtest
@@ -30,6 +30,7 @@ Read_conffile config/bootstrap
Read_conffile config/chroot
Read_conffile config/binary
Read_conffile config/source
+Read_conffile "${LH_CONFIG}"
Set_defaults
if [ "${LH_MEMTEST}" = "disabled" ]
@@ -60,11 +61,12 @@ fi
if [ "${LH_CHROOT_BUILD}" = "enabled" ]
then
- if [ -f chroot/usr/sbin/grub ] && [ ! -d chroot/boot/grub ]
+ if [ -f chroot/usr/sbin/grub ] && [ ! -f chroot/boot/grub/menu.lst ]
then
GRUB="yes"
mkdir -p chroot/boot/grub
+ touch chroot/boot/grub/menu.lst
fi
fi
diff --git a/helpers/lh_binary_net b/helpers/lh_binary_net
index 40286d4..2fb6e2c 100755
--- a/helpers/lh_binary_net
+++ b/helpers/lh_binary_net
@@ -30,6 +30,7 @@ Read_conffile config/bootstrap
Read_conffile config/chroot
Read_conffile config/binary
Read_conffile config/source
+Read_conffile "${LH_CONFIG}"
Set_defaults
if ! echo "${LH_BINARY_IMAGES}" | grep -qs net
diff --git a/helpers/lh_binary_rootfs b/helpers/lh_binary_rootfs
index 15feb5f..f800709 100755
--- a/helpers/lh_binary_rootfs
+++ b/helpers/lh_binary_rootfs
@@ -30,6 +30,7 @@ Read_conffile config/bootstrap
Read_conffile config/chroot
Read_conffile config/binary
Read_conffile config/source
+Read_conffile "${LH_CONFIG}"
Set_defaults
Echo_message "Begin building root filesystem image..."
diff --git a/helpers/lh_binary_syslinux b/helpers/lh_binary_syslinux
index 0568de9..1f77ce8 100755
--- a/helpers/lh_binary_syslinux
+++ b/helpers/lh_binary_syslinux
@@ -30,6 +30,7 @@ Read_conffile config/bootstrap
Read_conffile config/chroot
Read_conffile config/binary
Read_conffile config/source
+Read_conffile "${LH_CONFIG}"
Set_defaults
if [ "${LH_BOOTLOADER}" != "syslinux" ]
diff --git a/helpers/lh_binary_tar b/helpers/lh_binary_tar
index 3435935..ed1cab8 100755
--- a/helpers/lh_binary_tar
+++ b/helpers/lh_binary_tar
@@ -30,6 +30,7 @@ Read_conffile config/bootstrap
Read_conffile config/chroot
Read_conffile config/binary
Read_conffile config/source
+Read_conffile "${LH_CONFIG}"
Set_defaults
if ! echo "${LH_BINARY_IMAGES}" | grep -qs tar
diff --git a/helpers/lh_binary_usb-hdd b/helpers/lh_binary_usb-hdd
index f13896c..09c38f7 100755
--- a/helpers/lh_binary_usb-hdd
+++ b/helpers/lh_binary_usb-hdd
@@ -30,6 +30,7 @@ Read_conffile config/bootstrap
Read_conffile config/chroot
Read_conffile config/binary
Read_conffile config/source
+Read_conffile "${LH_CONFIG}"
Set_defaults
if ! echo "${LH_BINARY_IMAGES}" | grep -qs usb-hdd
diff --git a/helpers/lh_binary_yaboot b/helpers/lh_binary_yaboot
index dcdb839..73da490 100755
--- a/helpers/lh_binary_yaboot
+++ b/helpers/lh_binary_yaboot
@@ -30,6 +30,7 @@ Read_conffile config/bootstrap
Read_conffile config/chroot
Read_conffile config/binary
Read_conffile config/source
+Read_conffile "${LH_CONFIG}"
Set_defaults
if [ "${LH_BOOTLOADER}" != "yaboot" ]
diff --git a/helpers/lh_bootstrap b/helpers/lh_bootstrap
index c16f10c..4d9cf46 100755
--- a/helpers/lh_bootstrap
+++ b/helpers/lh_bootstrap
@@ -30,6 +30,7 @@ Read_conffile config/bootstrap
Read_conffile config/chroot
Read_conffile config/binary
Read_conffile config/source
+Read_conffile "${LH_CONFIG}"
Set_defaults
# Bootstrapping system
diff --git a/helpers/lh_bootstrap_cache b/helpers/lh_bootstrap_cache
index 03ae904..e6c8dcc 100755
--- a/helpers/lh_bootstrap_cache
+++ b/helpers/lh_bootstrap_cache
@@ -30,6 +30,7 @@ Read_conffile config/bootstrap
Read_conffile config/chroot
Read_conffile config/binary
Read_conffile config/source
+Read_conffile "${LH_CONFIG}"
Set_defaults
Echo_message "Begin caching bootstrap stage..."
diff --git a/helpers/lh_bootstrap_cdebootstrap b/helpers/lh_bootstrap_cdebootstrap
index 37c8c79..dcc350d 100755
--- a/helpers/lh_bootstrap_cdebootstrap
+++ b/helpers/lh_bootstrap_cdebootstrap
@@ -30,6 +30,7 @@ Read_conffile config/bootstrap
Read_conffile config/chroot
Read_conffile config/binary
Read_conffile config/source
+Read_conffile "${LH_CONFIG}"
Set_defaults
if [ "${LH_BOOTSTRAP}" != "cdebootstrap" ]
diff --git a/helpers/lh_bootstrap_copy b/helpers/lh_bootstrap_copy
index c1991fb..d84916c 100755
--- a/helpers/lh_bootstrap_copy
+++ b/helpers/lh_bootstrap_copy
@@ -30,6 +30,7 @@ Read_conffile config/bootstrap
Read_conffile config/chroot
Read_conffile config/binary
Read_conffile config/source
+Read_conffile "${LH_CONFIG}"
Set_defaults
if [ "${LH_BOOTSTRAP}" != "copy" ]
diff --git a/helpers/lh_bootstrap_debootstrap b/helpers/lh_bootstrap_debootstrap
index ad71962..7661025 100755
--- a/helpers/lh_bootstrap_debootstrap
+++ b/helpers/lh_bootstrap_debootstrap
@@ -30,6 +30,7 @@ Read_conffile config/bootstrap
Read_conffile config/chroot
Read_conffile config/binary
Read_conffile config/source
+Read_conffile "${LH_CONFIG}"
Set_defaults
if [ "${LH_BOOTSTRAP}" != "debootstrap" ]
diff --git a/helpers/lh_chroot b/helpers/lh_chroot
index a50f92d..aafe71f 100755
--- a/helpers/lh_chroot
+++ b/helpers/lh_chroot
@@ -30,6 +30,7 @@ Read_conffile config/bootstrap
Read_conffile config/chroot
Read_conffile config/binary
Read_conffile config/source
+Read_conffile "${LH_CONFIG}"
Set_defaults
# Configuring chroot
@@ -37,6 +38,7 @@ lh_chroot_cache restore ${*}
lh_chroot_proc 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 ${*}
@@ -70,6 +72,7 @@ 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_proc remove ${*}
diff --git a/helpers/lh_chroot_apt b/helpers/lh_chroot_apt
index 2534efd..5ba5b00 100755
--- a/helpers/lh_chroot_apt
+++ b/helpers/lh_chroot_apt
@@ -30,6 +30,7 @@ Read_conffile config/bootstrap
Read_conffile config/chroot
Read_conffile config/binary
Read_conffile config/source
+Read_conffile "${LH_CONFIG}"
Set_defaults
# Requiring stage file
diff --git a/helpers/lh_chroot_cache b/helpers/lh_chroot_cache
index 2f016a6..157a48e 100755
--- a/helpers/lh_chroot_cache
+++ b/helpers/lh_chroot_cache
@@ -30,6 +30,7 @@ Read_conffile config/bootstrap
Read_conffile config/chroot
Read_conffile config/binary
Read_conffile config/source
+Read_conffile "${LH_CONFIG}"
Set_defaults
Echo_message "Begin caching chroot stage..."
diff --git a/helpers/lh_chroot_debianchroot b/helpers/lh_chroot_debianchroot
index 3a193a6..beabbd2 100755
--- a/helpers/lh_chroot_debianchroot
+++ b/helpers/lh_chroot_debianchroot
@@ -30,6 +30,7 @@ Read_conffile config/bootstrap
Read_conffile config/chroot
Read_conffile config/binary
Read_conffile config/source
+Read_conffile "${LH_CONFIG}"
Set_defaults
# Requiring stage file
diff --git a/helpers/lh_chroot_dpkg b/helpers/lh_chroot_dpkg
new file mode 100755
index 0000000..ae08f8a
--- /dev/null
+++ b/helpers/lh_chroot_dpkg
@@ -0,0 +1,88 @@
+#!/bin/sh
+
+# lh_chroot_dpkg(1) - manage /sbin/dpkg
+# Copyright (C) 2006-2007 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="${LH_BASE:-/usr/share/live-helper}"
+
+for FUNCTION in "${LH_BASE}"/functions/*.sh
+do
+ . "${FUNCTION}"
+done
+
+# Setting static variables
+DESCRIPTION="manage /sbin/dpkg"
+HELP=""
+USAGE="${PROGRAM} {install|remove} [--force]"
+
+Arguments "${@}"
+
+# Reading configuration files
+Read_conffile config/common
+Read_conffile config/bootstrap
+Read_conffile config/chroot
+Read_conffile config/binary
+Read_conffile config/source
+Read_conffile "${LH_CONFIG}"
+Set_defaults
+
+# Requiring stage file
+Require_stagefile .stage/bootstrap
+
+case "${1}" in
+ install)
+ Echo_message "Configuring file /sbin/start-stop-daemon"
+
+ # Checking stage file
+ Check_stagefile .stage/chroot_dpkg
+
+ # Checking lock file
+ Check_lockfile .lock
+
+ # Creating lock file
+ Create_lockfile .lock
+
+ # Save start-stop-daemon program
+ mv chroot/sbin/start-stop-daemon chroot/sbin/start-stop-daemon.orig
+
+ # Create start-stop-daemon program
+
+cat > chroot/sbin/start-stop-daemon << EOF
+#!/bin/sh
+
+exit 0
+EOF
+
+ chmod 755 chroot/sbin/start-stop-daemon
+
+ # Creating stage file
+ Create_stagefile .stage/chroot_dpkg
+ ;;
+
+ remove)
+ # Checking lock file
+ Check_lockfile .lock
+
+ # Creating lock file
+ Create_lockfile .lock
+
+ Echo_message "Deconfiguring file /sbin/start-stop-daemon"
+
+ # Restore start-stop-daemon program
+ mv chroot/sbin/start-stop-daemon.orig chroot/sbin/start-stop-daemon
+
+ # Removing stage file
+ rm -f .stage/chroot_dpkg
+ ;;
+
+ *)
+ Usage
+ ;;
+esac
diff --git a/helpers/lh_chroot_hacks b/helpers/lh_chroot_hacks
index a8ee989..2b571a5 100755
--- a/helpers/lh_chroot_hacks
+++ b/helpers/lh_chroot_hacks
@@ -30,6 +30,7 @@ Read_conffile config/bootstrap
Read_conffile config/chroot
Read_conffile config/binary
Read_conffile config/source
+Read_conffile "${LH_CONFIG}"
Set_defaults
Echo_message "Begin executing hacks..."
diff --git a/helpers/lh_chroot_hooks b/helpers/lh_chroot_hooks
index 3e1fc0d..0ae95bc 100755
--- a/helpers/lh_chroot_hooks
+++ b/helpers/lh_chroot_hooks
@@ -30,6 +30,7 @@ Read_conffile config/bootstrap
Read_conffile config/chroot
Read_conffile config/binary
Read_conffile config/source
+Read_conffile "${LH_CONFIG}"
Set_defaults
Echo_message "Begin executing hooks..."
diff --git a/helpers/lh_chroot_hostname b/helpers/lh_chroot_hostname
index 7d04d68..0106eee 100755
--- a/helpers/lh_chroot_hostname
+++ b/helpers/lh_chroot_hostname
@@ -30,6 +30,7 @@ Read_conffile config/bootstrap
Read_conffile config/chroot
Read_conffile config/binary
Read_conffile config/source
+Read_conffile "${LH_CONFIG}"
Set_defaults
# Requiring stage file
diff --git a/helpers/lh_chroot_hosts b/helpers/lh_chroot_hosts
index 2cd8f08..c4d633e 100755
--- a/helpers/lh_chroot_hosts
+++ b/helpers/lh_chroot_hosts
@@ -30,6 +30,7 @@ Read_conffile config/bootstrap
Read_conffile config/chroot
Read_conffile config/binary
Read_conffile config/source
+Read_conffile "${LH_CONFIG}"
Set_defaults
# Requiring stage file
diff --git a/helpers/lh_chroot_interactive b/helpers/lh_chroot_interactive
index 8c63e22..236e69b 100755
--- a/helpers/lh_chroot_interactive
+++ b/helpers/lh_chroot_interactive
@@ -30,6 +30,7 @@ Read_conffile config/bootstrap
Read_conffile config/chroot
Read_conffile config/binary
Read_conffile config/source
+Read_conffile "${LH_CONFIG}"
Set_defaults
if [ "${LH_INTERACTIVE}" = "disabled" ]
diff --git a/helpers/lh_chroot_linux-image b/helpers/lh_chroot_linux-image
index 44bbfa5..af93d1d 100755
--- a/helpers/lh_chroot_linux-image
+++ b/helpers/lh_chroot_linux-image
@@ -30,6 +30,7 @@ Read_conffile config/bootstrap
Read_conffile config/chroot
Read_conffile config/binary
Read_conffile config/source
+Read_conffile "${LH_CONFIG}"
Set_defaults
# Requiring stage file
diff --git a/helpers/lh_chroot_local-hooks b/helpers/lh_chroot_local-hooks
index 75702db..6197b48 100755
--- a/helpers/lh_chroot_local-hooks
+++ b/helpers/lh_chroot_local-hooks
@@ -30,6 +30,7 @@ Read_conffile config/bootstrap
Read_conffile config/chroot
Read_conffile config/binary
Read_conffile config/source
+Read_conffile "${LH_CONFIG}"
Set_defaults
Echo_message "Begin executing local hooks..."
diff --git a/helpers/lh_chroot_local-includes b/helpers/lh_chroot_local-includes
index 329c566..5a66a1e 100755
--- a/helpers/lh_chroot_local-includes
+++ b/helpers/lh_chroot_local-includes
@@ -30,6 +30,7 @@ Read_conffile config/bootstrap
Read_conffile config/chroot
Read_conffile config/binary
Read_conffile config/source
+Read_conffile "${LH_CONFIG}"
Set_defaults
Echo_message "Begin copying chroot local includes..."
diff --git a/helpers/lh_chroot_local-packages b/helpers/lh_chroot_local-packages
index fd42695..f546868 100755
--- a/helpers/lh_chroot_local-packages
+++ b/helpers/lh_chroot_local-packages
@@ -30,6 +30,7 @@ Read_conffile config/bootstrap
Read_conffile config/chroot
Read_conffile config/binary
Read_conffile config/source
+Read_conffile "${LH_CONFIG}"
Set_defaults
Echo_message "Begin installing local packages..."
diff --git a/helpers/lh_chroot_local-packageslists b/helpers/lh_chroot_local-packageslists
index dcebd7c..bd615e3 100755
--- a/helpers/lh_chroot_local-packageslists
+++ b/helpers/lh_chroot_local-packageslists
@@ -30,6 +30,7 @@ Read_conffile config/bootstrap
Read_conffile config/chroot
Read_conffile config/binary
Read_conffile config/source
+Read_conffile "${LH_CONFIG}"
Set_defaults
Echo_message "Begin installing local packages lists..."
diff --git a/helpers/lh_chroot_local-preseed b/helpers/lh_chroot_local-preseed
index f93f463..bc5bb2e 100755
--- a/helpers/lh_chroot_local-preseed
+++ b/helpers/lh_chroot_local-preseed
@@ -30,6 +30,7 @@ Read_conffile config/bootstrap
Read_conffile config/chroot
Read_conffile config/binary
Read_conffile config/source
+Read_conffile "${LH_CONFIG}"
Set_defaults
Echo_message "Begin executing locale preseed..."
diff --git a/helpers/lh_chroot_localization b/helpers/lh_chroot_localization
index 25e8d5f..e24de69 100755
--- a/helpers/lh_chroot_localization
+++ b/helpers/lh_chroot_localization
@@ -30,6 +30,7 @@ Read_conffile config/bootstrap
Read_conffile config/chroot
Read_conffile config/binary
Read_conffile config/source
+Read_conffile "${LH_CONFIG}"
Set_defaults
Echo_message "Begin installing localization packages..."
diff --git a/helpers/lh_chroot_packages b/helpers/lh_chroot_packages
index 87e8eaf..661b335 100755
--- a/helpers/lh_chroot_packages
+++ b/helpers/lh_chroot_packages
@@ -30,6 +30,7 @@ Read_conffile config/bootstrap
Read_conffile config/chroot
Read_conffile config/binary
Read_conffile config/source
+Read_conffile "${LH_CONFIG}"
Set_defaults
Echo_message "Begin installing packages..."
diff --git a/helpers/lh_chroot_packageslists b/helpers/lh_chroot_packageslists
index 2c21574..7d0cdef 100755
--- a/helpers/lh_chroot_packageslists
+++ b/helpers/lh_chroot_packageslists
@@ -30,6 +30,7 @@ Read_conffile config/bootstrap
Read_conffile config/chroot
Read_conffile config/binary
Read_conffile config/source
+Read_conffile "${LH_CONFIG}"
Set_defaults
Echo_message "Begin installing packages lists..."
diff --git a/helpers/lh_chroot_preseed b/helpers/lh_chroot_preseed
index 55732ef..49d5aa1 100755
--- a/helpers/lh_chroot_preseed
+++ b/helpers/lh_chroot_preseed
@@ -30,6 +30,7 @@ Read_conffile config/bootstrap
Read_conffile config/chroot
Read_conffile config/binary
Read_conffile config/source
+Read_conffile "${LH_CONFIG}"
Set_defaults
Echo_message "Begin executing preseed..."
diff --git a/helpers/lh_chroot_proc b/helpers/lh_chroot_proc
index 66b4c3c..0dc12ab 100755
--- a/helpers/lh_chroot_proc
+++ b/helpers/lh_chroot_proc
@@ -33,6 +33,7 @@ Read_conffile config/bootstrap
Read_conffile config/chroot
Read_conffile config/binary
Read_conffile config/source
+Read_conffile "${LH_CONFIG}"
Set_defaults
Echo_message "Begin mounting /proc..."
diff --git a/helpers/lh_chroot_resolv b/helpers/lh_chroot_resolv
index 0409054..eeeead2 100755
--- a/helpers/lh_chroot_resolv
+++ b/helpers/lh_chroot_resolv
@@ -30,6 +30,7 @@ Read_conffile config/bootstrap
Read_conffile config/chroot
Read_conffile config/binary
Read_conffile config/source
+Read_conffile "${LH_CONFIG}"
Set_defaults
# Requiring stage file
diff --git a/helpers/lh_chroot_sources b/helpers/lh_chroot_sources
index 4e46ea9..307aeba 100755
--- a/helpers/lh_chroot_sources
+++ b/helpers/lh_chroot_sources
@@ -30,6 +30,7 @@ Read_conffile config/bootstrap
Read_conffile config/chroot
Read_conffile config/binary
Read_conffile config/source
+Read_conffile "${LH_CONFIG}"
Set_defaults
# Requiring stage file
diff --git a/helpers/lh_chroot_symlinks b/helpers/lh_chroot_symlinks
index 4fffd14..fb7155d 100755
--- a/helpers/lh_chroot_symlinks
+++ b/helpers/lh_chroot_symlinks
@@ -30,6 +30,7 @@ Read_conffile config/bootstrap
Read_conffile config/chroot
Read_conffile config/binary
Read_conffile config/source
+Read_conffile "${LH_CONFIG}"
Set_defaults
if [ "${LH_SYMLINKS}" != "enabled" ]
diff --git a/helpers/lh_chroot_sysfs b/helpers/lh_chroot_sysfs
index 996262d..f9d1f41 100755
--- a/helpers/lh_chroot_sysfs
+++ b/helpers/lh_chroot_sysfs
@@ -33,6 +33,7 @@ Read_conffile config/bootstrap
Read_conffile config/chroot
Read_conffile config/binary
Read_conffile config/source
+Read_conffile "${LH_CONFIG}"
Set_defaults
Echo_message "Begin mounting /sys..."
diff --git a/helpers/lh_chroot_sysv-rc b/helpers/lh_chroot_sysv-rc
index d77306a..a9a436b 100755
--- a/helpers/lh_chroot_sysv-rc
+++ b/helpers/lh_chroot_sysv-rc
@@ -30,6 +30,7 @@ Read_conffile config/bootstrap
Read_conffile config/chroot
Read_conffile config/binary
Read_conffile config/source
+Read_conffile "${LH_CONFIG}"
Set_defaults
# Requiring stage file
diff --git a/helpers/lh_chroot_sysvinit b/helpers/lh_chroot_sysvinit
index ffed709..b4927b6 100755
--- a/helpers/lh_chroot_sysvinit
+++ b/helpers/lh_chroot_sysvinit
@@ -30,6 +30,7 @@ Read_conffile config/bootstrap
Read_conffile config/chroot
Read_conffile config/binary
Read_conffile config/source
+Read_conffile "${LH_CONFIG}"
Set_defaults
Echo_message "Configuring package sysvinit"
diff --git a/helpers/lh_chroot_tasks b/helpers/lh_chroot_tasks
index 49f44b6..46277d7 100755
--- a/helpers/lh_chroot_tasks
+++ b/helpers/lh_chroot_tasks
@@ -30,6 +30,7 @@ Read_conffile config/bootstrap
Read_conffile config/chroot
Read_conffile config/binary
Read_conffile config/source
+Read_conffile "${LH_CONFIG}"
Set_defaults
Echo_message "Begin installing tasks..."
diff --git a/helpers/lh_clean b/helpers/lh_clean
index c417415..4c52ed2 100755
--- a/helpers/lh_clean
+++ b/helpers/lh_clean
@@ -30,6 +30,7 @@ Read_conffile config/bootstrap
Read_conffile config/chroot
Read_conffile config/binary
Read_conffile config/source
+Read_conffile "${LH_CONFIG}"
Set_defaults
rm -f .lock
@@ -53,6 +54,7 @@ case "${1}" in
;;
chroot)
+ Echo_message "Cleaning chroot"
${LH_ROOT_COMMAND} umount -f chroot/sys > /dev/null 2>&1 || true
${LH_ROOT_COMMAND} umount -f chroot/proc/sys/fs/binfmt_misc > /dev/null 2>&1 || true
${LH_ROOT_COMMAND} umount -f chroot/proc > /dev/null 2>&1 || true
diff --git a/helpers/lh_config b/helpers/lh_config
index 60e8530..766a853 100755
--- a/helpers/lh_config
+++ b/helpers/lh_config
@@ -487,6 +487,7 @@ Read_conffile config/bootstrap
Read_conffile config/chroot
Read_conffile config/binary
Read_conffile config/source
+Read_conffile "${LH_CONFIG}"
# Setting defaults
Set_defaults
diff --git a/helpers/lh_losetup b/helpers/lh_losetup
index 8ef33c9..662b4ad 100755
--- a/helpers/lh_losetup
+++ b/helpers/lh_losetup
@@ -30,6 +30,7 @@ Read_conffile config/bootstrap
Read_conffile config/chroot
Read_conffile config/binary
Read_conffile config/source
+Read_conffile "${LH_CONFIG}"
Set_defaults
DEVICE="${1}"
diff --git a/helpers/lh_source b/helpers/lh_source
index 6e04bb4..f9b59fe 100755
--- a/helpers/lh_source
+++ b/helpers/lh_source
@@ -30,6 +30,7 @@ Read_conffile config/bootstrap
Read_conffile config/chroot
Read_conffile config/binary
Read_conffile config/source
+Read_conffile "${LH_CONFIG}"
Set_defaults
# Enabling network in chroot
diff --git a/helpers/lh_source_debian b/helpers/lh_source_debian
index b15f093..e939e6c 100755
--- a/helpers/lh_source_debian
+++ b/helpers/lh_source_debian
@@ -30,6 +30,7 @@ Read_conffile config/bootstrap
Read_conffile config/chroot
Read_conffile config/binary
Read_conffile config/source
+Read_conffile "${LH_CONFIG}"
Set_defaults
if [ "${LH_SOURCE}" != "enabled" ]
diff --git a/helpers/lh_source_debian-live b/helpers/lh_source_debian-live
index 00ddd23..d92fe3a 100755
--- a/helpers/lh_source_debian-live
+++ b/helpers/lh_source_debian-live
@@ -30,6 +30,7 @@ Read_conffile config/bootstrap
Read_conffile config/chroot
Read_conffile config/binary
Read_conffile config/source
+Read_conffile "${LH_CONFIG}"
Set_defaults
if [ "${LH_SOURCE}" != "enabled" ]
diff --git a/helpers/lh_source_disk b/helpers/lh_source_disk
index 78242d8..e387749 100755
--- a/helpers/lh_source_disk
+++ b/helpers/lh_source_disk
@@ -30,6 +30,7 @@ Read_conffile config/bootstrap
Read_conffile config/chroot
Read_conffile config/binary
Read_conffile config/source
+Read_conffile "${LH_CONFIG}"
Set_defaults
if [ "${LH_SOURCE_IMAGES}" != "iso" ]
diff --git a/helpers/lh_source_iso b/helpers/lh_source_iso
index da1e98e..b568781 100755
--- a/helpers/lh_source_iso
+++ b/helpers/lh_source_iso
@@ -30,6 +30,7 @@ Read_conffile config/bootstrap
Read_conffile config/chroot
Read_conffile config/binary
Read_conffile config/source
+Read_conffile "${LH_CONFIG}"
Set_defaults
if [ "${LH_SOURCE}" != "enabled" ]
diff --git a/helpers/lh_source_md5sum b/helpers/lh_source_md5sum
index 55e0d23..bf7f378 100755
--- a/helpers/lh_source_md5sum
+++ b/helpers/lh_source_md5sum
@@ -30,6 +30,7 @@ Read_conffile config/bootstrap
Read_conffile config/chroot
Read_conffile config/binary
Read_conffile config/source
+Read_conffile "${LH_CONFIG}"
Set_defaults
if [ "${LH_SOURCE}" != "enabled" ]
diff --git a/helpers/lh_source_net b/helpers/lh_source_net
index c6ef057..eed33c9 100755
--- a/helpers/lh_source_net
+++ b/helpers/lh_source_net
@@ -30,6 +30,7 @@ Read_conffile config/bootstrap
Read_conffile config/chroot
Read_conffile config/binary
Read_conffile config/source
+Read_conffile "${LH_CONFIG}"
Set_defaults
if [ "${LH_SOURCE}" != "enabled" ]
diff --git a/helpers/lh_source_tar b/helpers/lh_source_tar
index 5a4d018..2e6ae38 100755
--- a/helpers/lh_source_tar
+++ b/helpers/lh_source_tar
@@ -30,6 +30,7 @@ Read_conffile config/bootstrap
Read_conffile config/chroot
Read_conffile config/binary
Read_conffile config/source
+Read_conffile "${LH_CONFIG}"
Set_defaults
if [ "${LH_SOURCE}" != "enabled" ]
diff --git a/helpers/lh_source_usb-hdd b/helpers/lh_source_usb-hdd
index cf93786..ff78393 100755
--- a/helpers/lh_source_usb-hdd
+++ b/helpers/lh_source_usb-hdd
@@ -30,6 +30,7 @@ Read_conffile config/bootstrap
Read_conffile config/chroot
Read_conffile config/binary
Read_conffile config/source
+Read_conffile "${LH_CONFIG}"
Set_defaults
if [ "${LH_SOURCE}" != "enabled" ]
diff --git a/helpers/lh_testroot b/helpers/lh_testroot
index 90464ec..f213f86 100755
--- a/helpers/lh_testroot
+++ b/helpers/lh_testroot
@@ -30,6 +30,7 @@ Read_conffile config/bootstrap
Read_conffile config/chroot
Read_conffile config/binary
Read_conffile config/source
+Read_conffile "${LH_CONFIG}"
Set_defaults
# Checking user account