summaryrefslogtreecommitdiff
path: root/helpers/lh_config
diff options
context:
space:
mode:
Diffstat (limited to 'helpers/lh_config')
-rwxr-xr-xhelpers/lh_config35
1 files changed, 35 insertions, 0 deletions
diff --git a/helpers/lh_config b/helpers/lh_config
index 398b102..0d42477 100755
--- a/helpers/lh_config
+++ b/helpers/lh_config
@@ -22,6 +22,8 @@ USAGE="${PROGRAM} [--force]"
Arguments "${@}"
+Echo_debug "Init ${PROGRAM}"
+
if [ "${1}" != "newconfig" ]
then
# Source existing configuration
@@ -34,6 +36,8 @@ fi
# Setting defaults
Set_defaults
+Breakpoint "config: Init"
+
# Creating configuration directory
install -d -m 0755 "${LIVE_ROOT}"/config || true
@@ -41,6 +45,10 @@ install -d -m 0755 "${LIVE_ROOT}"/config || true
cat > "${LIVE_ROOT}"/config/common << EOF
# config/common: configuration for live-helper(7)
+# \$LH_MODE: set distribution mode
+# (Default: ${LH_MODE})
+LH_MODE="${LH_MODE}"
+
# \$LH_APT: set package manager
# (Default: ${LH_APT})
LH_APT="${LH_APT}"
@@ -96,6 +104,28 @@ LH_LOSETUP="${LH_LOSETUP}"
# \$LIVE_ROOT: set the root directory
# (Default: ${LIVE_ROOT})
LIVE_ROOT="${LIVE_ROOT}"
+
+# Live-helper options
+
+# \$LH_BREAKPOINTS: enable breakpoints
+# (Default: ${LH_BREAKPOINTS})
+LH_BREAKPOINTS="${LH_BREAKPOINTS}"
+
+# \$LH_DEBUG: enable debug
+# (Default: ${LH_DEBUG})
+LH_DEBUG="${LH_DEBUG}"
+
+# \$LH_FORCE: enable force
+# (Default: ${LH_FORCE})
+LH_FORCE="${LH_FORCE}"
+
+# \$LH_QUIET: enable quiet
+# (Default: ${LH_QUIET})
+LH_QUIET="${LH_QUIET}"
+
+# \$LH_VERBOSE: enable verbose
+# (Default: ${LH_VERBOSE})
+LH_VERBOSE="${LH_VERBOSE}"
EOF
# Creating lh_chroot_* configuration
@@ -110,6 +140,10 @@ LIVE_KERNEL_FLAVOUR="${LIVE_KERNEL_FLAVOUR}"
# (Default: autodetected)
LIVE_KERNEL_PACKAGES="${LIVE_KERNEL_PACKAGES}"
+# \$LIVE_KEYRING_PACKAGES: set the keyring packages
+# (Default: empty)
+LIVE_KEYRING_PACKAGES="${LIVE_KEYRING_PACKAGES}"
+
# \$LIVE_LANGUAGE: set the language to use
# (Default: empty)
LIVE_LANGUAGE="${LIVE_LANGUAGE}"
@@ -148,6 +182,7 @@ install -d -m 0755 "${LIVE_ROOT}"/config/chroot_localhooks || true
install -d -m 0755 "${LIVE_ROOT}"/config/chroot_localincludes || true
install -d -m 0755 "${LIVE_ROOT}"/config/chroot_localpackages || true
install -d -m 0755 "${LIVE_ROOT}"/config/chroot_localpackageslists || true
+install -d -m 0755 "${LIVE_ROOT}"/config/chroot_sources || true
# Creating lh_bootstrap_* configuration
cat > "${LIVE_ROOT}"/config/bootstrap << EOF