diff options
Diffstat (limited to 'helpers')
-rwxr-xr-x | helpers/lh | 2 | ||||
-rwxr-xr-x | helpers/lh_binary | 88 | ||||
-rwxr-xr-x | helpers/lh_binary_rootfs | 144 | ||||
-rwxr-xr-x | helpers/lh_bootstrap | 10 | ||||
-rwxr-xr-x | helpers/lh_bootstrap_cdebootstrap | 2 | ||||
-rwxr-xr-x | helpers/lh_bootstrap_copy | 2 | ||||
-rwxr-xr-x | helpers/lh_bootstrap_debootstrap | 2 | ||||
-rwxr-xr-x | helpers/lh_build | 8 | ||||
-rwxr-xr-x | helpers/lh_chroot | 88 | ||||
-rwxr-xr-x | helpers/lh_chroot_devpts | 2 | ||||
-rwxr-xr-x | helpers/lh_chroot_proc | 2 | ||||
-rwxr-xr-x | helpers/lh_chroot_selinuxfs | 2 | ||||
-rwxr-xr-x | helpers/lh_chroot_sysfs | 2 | ||||
-rwxr-xr-x | helpers/lh_source | 32 |
14 files changed, 193 insertions, 193 deletions
diff --git a/helpers/lh b/helpers/lh index 3ebaaa736..bb4d76b1f 100755 --- a/helpers/lh +++ b/helpers/lh @@ -36,7 +36,7 @@ case "${1}" in if [ -x "$(which lh_${COMMAND} 2>/dev/null)" ] then - exec lh_"${COMMAND}" "${@}" + LH=1 exec lh_"${COMMAND}" "${@}" else Echo_error "no such helper" exit 1 diff --git a/helpers/lh_binary b/helpers/lh_binary index 2b299e772..91e04a480 100755 --- a/helpers/lh_binary +++ b/helpers/lh_binary @@ -27,69 +27,69 @@ Set_defaults Setup_cleanup # Preparing root filesystem -lh_binary_chroot ${*} +lh binary_chroot ${*} if [ "${LH_CHROOT_BUILD}" = "enabled" ] then # Configuring chroot - lh_chroot_devpts install ${*} - lh_chroot_proc install ${*} - lh_chroot_selinuxfs install ${*} - lh_chroot_sysfs install ${*} - lh_chroot_hosts install ${*} - lh_chroot_resolv install ${*} - lh_chroot_hostname install ${*} - lh_chroot_apt install-binary ${*} - lh_chroot_sources install ${*} + lh chroot_devpts install ${*} + lh chroot_proc install ${*} + lh chroot_selinuxfs install ${*} + lh chroot_sysfs install ${*} + lh chroot_hosts install ${*} + lh chroot_resolv install ${*} + lh chroot_hostname install ${*} + lh chroot_apt install-binary ${*} + lh chroot_sources install ${*} fi # Building root filesystem -lh_binary_rootfs ${*} -lh_binary_manifest ${*} -lh_binary_encryption ${*} +lh binary_rootfs ${*} +lh binary_manifest ${*} +lh binary_encryption ${*} # Prepare images -lh_binary_local-packageslists ${*} -lh_binary_linux-image ${*} -lh_binary_debian-installer ${*} -lh_binary_memtest ${*} -lh_binary_grub ${*} -lh_binary_syslinux ${*} -lh_binary_yaboot ${*} -lh_binary_silo ${*} -lh_binary_disk ${*} -lh_binary_win32-loader ${*} -lh_binary_includes ${*} -lh_binary_local-includes ${*} -lh_binary_local-hooks ${*} -lh_binary_md5sum ${*} +lh binary_local-packageslists ${*} +lh binary_linux-image ${*} +lh binary_debian-installer ${*} +lh binary_memtest ${*} +lh binary_grub ${*} +lh binary_syslinux ${*} +lh binary_yaboot ${*} +lh binary_silo ${*} +lh binary_disk ${*} +lh binary_win32-loader ${*} +lh binary_includes ${*} +lh binary_local-includes ${*} +lh binary_local-hooks ${*} +lh binary_md5sum ${*} if [ "${LH_CHROOT_BUILD}" != "enabled" ] then - lh_chroot_devpts install ${*} - lh_chroot_proc install ${*} - lh_chroot_selinuxfs install ${*} - lh_chroot_sysfs install ${*} + lh chroot_devpts install ${*} + lh chroot_proc install ${*} + lh chroot_selinuxfs install ${*} + lh chroot_sysfs install ${*} fi # Building images -lh_binary_iso ${*} -lh_binary_net ${*} -lh_binary_tar ${*} -lh_binary_usb-hdd ${*} -lh_binary_virtual-hdd ${*} +lh binary_iso ${*} +lh binary_net ${*} +lh binary_tar ${*} +lh binary_usb-hdd ${*} +lh binary_virtual-hdd ${*} if [ "${LH_CHROOT_BUILD}" = "enabled" ] then # Deconfiguring chroot rm -f .stage/chroot_sources - lh_chroot_hostname remove ${*} - lh_chroot_resolv remove ${*} - lh_chroot_hosts remove ${*} + lh chroot_hostname remove ${*} + lh chroot_resolv remove ${*} + lh chroot_hosts remove ${*} fi -lh_chroot_apt remove ${*} -lh_chroot_sysfs remove ${*} -lh_chroot_selinuxfs remove ${*} -lh_chroot_proc remove ${*} -lh_chroot_devpts remove ${*} +lh chroot_apt remove ${*} +lh chroot_sysfs remove ${*} +lh chroot_selinuxfs remove ${*} +lh chroot_proc remove ${*} +lh chroot_devpts remove ${*} diff --git a/helpers/lh_binary_rootfs b/helpers/lh_binary_rootfs index 25fbb15e9..dede66207 100755 --- a/helpers/lh_binary_rootfs +++ b/helpers/lh_binary_rootfs @@ -152,34 +152,34 @@ case "${LH_CHROOT_FILESYSTEM}" in rm -f .lock mv chroot/chroot chroot.tmp - 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_debianchroot remove ${*} - lh_chroot_sysfs remove ${*} - lh_chroot_selinuxfs remove ${*} - lh_chroot_proc remove ${*} - lh_chroot_devpts remove ${*} + 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_debianchroot remove ${*} + lh chroot_sysfs remove ${*} + lh chroot_selinuxfs remove ${*} + lh chroot_proc remove ${*} + lh chroot_devpts remove ${*} rm -rf chroot mv chroot.tmp chroot - lh_chroot_devpts install ${*} - lh_chroot_proc install ${*} - lh_chroot_selinuxfs install ${*} - lh_chroot_sysfs install ${*} - lh_chroot_debianchroot 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 ${*} + lh chroot_devpts install ${*} + lh chroot_proc install ${*} + lh chroot_selinuxfs install ${*} + lh chroot_sysfs install ${*} + lh chroot_debianchroot 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 ${*} touch .lock else @@ -232,34 +232,34 @@ case "${LH_CHROOT_FILESYSTEM}" in rm -f .lock mv chroot/chroot chroot.tmp - 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_debianchroot remove ${*} - lh_chroot_sysfs remove ${*} - lh_chroot_selinuxfs remove ${*} - lh_chroot_proc remove ${*} - lh_chroot_devpts remove ${*} + 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_debianchroot remove ${*} + lh chroot_sysfs remove ${*} + lh chroot_selinuxfs remove ${*} + lh chroot_proc remove ${*} + lh chroot_devpts remove ${*} rm -rf chroot mv chroot.tmp chroot - lh_chroot_devpts install ${*} - lh_chroot_proc install ${*} - lh_chroot_selinuxfs install ${*} - lh_chroot_sysfs install ${*} - lh_chroot_debianchroot 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 ${*} + lh chroot_devpts install ${*} + lh chroot_proc install ${*} + lh chroot_selinuxfs install ${*} + lh chroot_sysfs install ${*} + lh chroot_debianchroot 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 ${*} else rm -rf chroot/chroot fi @@ -343,34 +343,34 @@ case "${LH_CHROOT_FILESYSTEM}" in rm -f .lock mv chroot/chroot chroot.tmp - 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_debianchroot remove ${*} - lh_chroot_sysfs remove ${*} - lh_chroot_selinuxfs remove ${*} - lh_chroot_proc remove ${*} - lh_chroot_devpts remove ${*} + 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_debianchroot remove ${*} + lh chroot_sysfs remove ${*} + lh chroot_selinuxfs remove ${*} + lh chroot_proc remove ${*} + lh chroot_devpts remove ${*} rm -rf chroot mv chroot.tmp chroot - lh_chroot_devpts install ${*} - lh_chroot_proc install ${*} - lh_chroot_selinuxfs install ${*} - lh_chroot_sysfs install ${*} - lh_chroot_debianchroot 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 ${*} + lh chroot_devpts install ${*} + lh chroot_proc install ${*} + lh chroot_selinuxfs install ${*} + lh chroot_sysfs install ${*} + lh chroot_debianchroot 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 ${*} touch .lock else diff --git a/helpers/lh_bootstrap b/helpers/lh_bootstrap index b3ebdd595..696fdf93f 100755 --- a/helpers/lh_bootstrap +++ b/helpers/lh_bootstrap @@ -27,8 +27,8 @@ Set_defaults Setup_cleanup # Bootstrapping system -lh_bootstrap_cache restore ${*} -lh_bootstrap_copy ${*} -lh_bootstrap_cdebootstrap ${*} -lh_bootstrap_debootstrap ${*} -lh_bootstrap_cache save ${*} +lh bootstrap_cache restore ${*} +lh bootstrap_copy ${*} +lh bootstrap_cdebootstrap ${*} +lh bootstrap_debootstrap ${*} +lh bootstrap_cache save ${*} diff --git a/helpers/lh_bootstrap_cdebootstrap b/helpers/lh_bootstrap_cdebootstrap index ae8340a9c..0ac72a74f 100755 --- a/helpers/lh_bootstrap_cdebootstrap +++ b/helpers/lh_bootstrap_cdebootstrap @@ -36,7 +36,7 @@ Echo_message "Begin bootstrapping system..." Check_package /usr/bin/${LH_BOOTSTRAP} cdebootstrap # Ensure that a system is built as root -lh_testroot +lh testroot # Checking stage file Check_stagefile .stage/bootstrap diff --git a/helpers/lh_bootstrap_copy b/helpers/lh_bootstrap_copy index 3726c2295..b70fcea03 100755 --- a/helpers/lh_bootstrap_copy +++ b/helpers/lh_bootstrap_copy @@ -34,7 +34,7 @@ Check_crossarchitecture Echo_message "Begin bootstrapping system..." # Ensure that a system is built as root -lh_testroot +lh testroot # Checking stage file Check_stagefile .stage/bootstrap diff --git a/helpers/lh_bootstrap_debootstrap b/helpers/lh_bootstrap_debootstrap index d36c8b821..0c296b6d7 100755 --- a/helpers/lh_bootstrap_debootstrap +++ b/helpers/lh_bootstrap_debootstrap @@ -36,7 +36,7 @@ Echo_message "Begin bootstrapping system..." Check_package /usr/sbin/debootstrap debootstrap # Ensure that a system is built as root -lh_testroot +lh testroot # Checking stage file Check_stagefile .stage/bootstrap diff --git a/helpers/lh_build b/helpers/lh_build index d3e7d630c..43a33de37 100755 --- a/helpers/lh_build +++ b/helpers/lh_build @@ -55,13 +55,13 @@ Set_defaults Check_defaults # Bootstrapping system -lh_bootstrap ${*} +lh bootstrap ${*} # Customizing chroot -lh_chroot ${*} +lh chroot ${*} # Building binary images -lh_binary ${*} +lh binary ${*} # Building source images -lh_source ${*} +lh source ${*} diff --git a/helpers/lh_chroot b/helpers/lh_chroot index 01c3356ba..6cb705e64 100755 --- a/helpers/lh_chroot +++ b/helpers/lh_chroot @@ -27,51 +27,51 @@ Set_defaults 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_hosts install ${*} -lh_chroot_resolv install ${*} -lh_chroot_hostname install ${*} -lh_chroot_apt install ${*} -lh_chroot_sources install ${*} -lh_chroot_linux-image install ${*} +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 ${*} # Customizing chroot -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 ${*} +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 ${*} # 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_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 ${*} +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 ${*} diff --git a/helpers/lh_chroot_devpts b/helpers/lh_chroot_devpts index 4fef63a4b..762469133 100755 --- a/helpers/lh_chroot_devpts +++ b/helpers/lh_chroot_devpts @@ -20,7 +20,7 @@ USAGE="${PROGRAM} {install|remove} [--force]" Arguments "${@}" # Ensure that a system is built as root -lh_testroot +lh testroot # Reading configuration files Read_conffiles config/all config/common config/bootstrap config/chroot config/binary config/source diff --git a/helpers/lh_chroot_proc b/helpers/lh_chroot_proc index bcf023e40..757b9c78c 100755 --- a/helpers/lh_chroot_proc +++ b/helpers/lh_chroot_proc @@ -20,7 +20,7 @@ USAGE="${PROGRAM} {install|remove} [--force]" Arguments "${@}" # Ensure that a system is built as root -lh_testroot +lh testroot # Reading configuration files Read_conffiles config/all config/common config/bootstrap config/chroot config/binary config/source diff --git a/helpers/lh_chroot_selinuxfs b/helpers/lh_chroot_selinuxfs index 0a463e899..c30d7cd95 100755 --- a/helpers/lh_chroot_selinuxfs +++ b/helpers/lh_chroot_selinuxfs @@ -20,7 +20,7 @@ USAGE="${PROGRAM} {install|remove} [--force]" Arguments "${@}" # Ensure that a system is built as root -lh_testroot +lh testroot # Reading configuration files Read_conffiles config/all config/common config/bootstrap config/chroot config/binary config/source diff --git a/helpers/lh_chroot_sysfs b/helpers/lh_chroot_sysfs index c4fbed9c2..9906ad29f 100755 --- a/helpers/lh_chroot_sysfs +++ b/helpers/lh_chroot_sysfs @@ -20,7 +20,7 @@ USAGE="${PROGRAM} {install|remove} [--force]" Arguments "${@}" # Ensure that a system is built as root -lh_testroot +lh testroot # Reading configuration files Read_conffiles config/all config/common config/bootstrap config/chroot config/binary config/source diff --git a/helpers/lh_source b/helpers/lh_source index 2f4707b82..84429e175 100755 --- a/helpers/lh_source +++ b/helpers/lh_source @@ -29,26 +29,26 @@ Require_stagefile .stage/chroot_install-packages Setup_cleanup # Enabling network in chroot -lh_chroot_hosts install ${*} -lh_chroot_resolv install ${*} -lh_chroot_hostname install ${*} -lh_chroot_sources install ${*} +lh chroot_hosts install ${*} +lh chroot_resolv install ${*} +lh chroot_hostname install ${*} +lh chroot_sources install ${*} # Preparing images -lh_source_debian-live ${*} -lh_source_debian ${*} -lh_source_disk ${*} -lh_source_md5sum ${*} +lh source_debian-live ${*} +lh source_debian ${*} +lh source_disk ${*} +lh source_md5sum ${*} # Building images -lh_source_iso ${*} -lh_source_net ${*} -lh_source_tar ${*} -lh_source_usb-hdd ${*} -lh_source_virtual-hdd ${*} +lh source_iso ${*} +lh source_net ${*} +lh source_tar ${*} +lh source_usb-hdd ${*} +lh source_virtual-hdd ${*} # Deconfiguring chroot rm -f .stage/chroot_sources -lh_chroot_hostname remove ${*} -lh_chroot_resolv remove ${*} -lh_chroot_hosts remove ${*} +lh chroot_hostname remove ${*} +lh chroot_resolv remove ${*} +lh chroot_hosts remove ${*} |