From fdef63e60c2e68226da2fe92d6cc393c1af2b801 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 23 Sep 2007 10:05:12 +0200 Subject: Adding live-helper 1.0~a16-1. --- helpers/lh_config | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) (limited to 'helpers/lh_config') diff --git a/helpers/lh_config b/helpers/lh_config index ef5e4237d..67ecbfb34 100755 --- a/helpers/lh_config +++ b/helpers/lh_config @@ -291,6 +291,7 @@ EOF # Creating lh_binary_* configuration mkdir -p "${LIVE_ROOT}"/config/binary_grub +mkdir -p "${LIVE_ROOT}"/config/binary_local-hooks mkdir -p "${LIVE_ROOT}"/config/binary_local-includes mkdir -p "${LIVE_ROOT}"/config/binary_local-udebs mkdir -p "${LIVE_ROOT}"/config/binary_rootfs @@ -319,10 +320,6 @@ LIVE_BOOTLOADER="${LIVE_BOOTLOADER}" # (Default: ${LIVE_DEBIAN_INSTALLER}) LIVE_DEBIAN_INSTALLER="${LIVE_DEBIAN_INSTALLER}" -# \$LIVE_LIVE_INSTALLER: set debian-installer + live-installer -# (Default: ${LIVE_LIVE_INSTALLER}) -LIVE_LIVE_INSTALLER="${LIVE_LIVE_INSTALLER}" - # \$LIVE_ENCRYPTION: set encrytion # (Default: empty) LIVE_ENCRYPTION="${LIVE_ENCRYPTION}" @@ -347,7 +344,7 @@ LIVE_ISO_PREPARER="${LIVE_ISO_PREPARER}" # (Default: ${LIVE_ISO_PUBLISHER}) LIVE_ISO_PUBLISHER="${LIVE_ISO_PUBLISHER}" -# \$LIVE_ISO_VOLUME: set iso volume +# \$LIVE_ISO_VOLUME: set iso volume (max 32 chars) # (Default: ${LIVE_ISO_VOLUME}) LIVE_ISO_VOLUME="${LIVE_ISO_VOLUME}" @@ -384,3 +381,17 @@ LIVE_SOURCE="${LIVE_SOURCE}" # (Default: ${LIVE_SOURCE_IMAGES}) LIVE_SOURCE_IMAGES="${LIVE_SOURCE_IMAGES}" EOF + +if [ "${CONFIG}" = "clone" ] +then + # Read package selection + echo `dpkg --get-selections | awk '{ print $1 }'` > config/chroot_local-packageslists/local-system + + # Read debconf questions + if [ ! -f /usr/bin/debconf-get-selections ] + then + Echo_warning "Please install 'debconf-utils' in order to use this feature." + else + debconf-get-selections | grep -v deinstall | cut -f1 > config/chroot_local-preseed/local-system + fi +fi -- cgit v1.2.3