summaryrefslogtreecommitdiff
path: root/helpers/lh_config
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2007-09-23 10:04:49 +0200
committerDaniel Baumann <daniel@debian.org>2011-03-09 18:18:29 +0100
commit1863ed88740575342008ac5f694d03e944bcece2 (patch)
tree58272f72528cedb7af31ee6e6c2c0f7fbd602160 /helpers/lh_config
parentda353a5231ad925013d01065768864307c70651a (diff)
downloadvyos-live-build-1863ed88740575342008ac5f694d03e944bcece2.tar.gz
vyos-live-build-1863ed88740575342008ac5f694d03e944bcece2.zip
Adding live-helper 1.0~a5-1.
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 398b10254..0d42477c9 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