summaryrefslogtreecommitdiff
path: root/helpers/lh_config
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2009-09-11 09:39:13 +0200
committerDaniel Baumann <daniel@debian.org>2011-03-09 19:09:46 +0100
commitec83843d6e5e7b1ca8473cf7f9b05fdfe10d220f (patch)
tree698870045e2c5a468166df30694ec67b6522462e /helpers/lh_config
parenta8e71bdb038388640eeb2276f6697546aded3505 (diff)
downloadlive-build-ec83843d6e5e7b1ca8473cf7f9b05fdfe10d220f.zip
live-build-ec83843d6e5e7b1ca8473cf7f9b05fdfe10d220f.tar.gz
Allowing to overwrite default gzip options through config switch or option.
Diffstat (limited to 'helpers/lh_config')
-rwxr-xr-xhelpers/lh_config9
1 files changed, 8 insertions, 1 deletions
diff --git a/helpers/lh_config b/helpers/lh_config
index 57a8b9e..03297be 100755
--- a/helpers/lh_config
+++ b/helpers/lh_config
@@ -71,6 +71,7 @@ USAGE="${PROGRAM} [--apt apt|aptitude]\n\
\t [--force]\n\
\t [--genisoimage genisomage|mkisofs]\n\
\t [--grub-splash FILE]\n\
+\t [--gzip-options OPTION|\"OPTIONS\"]\n\
\t [--hooks FILE]\n\
\t [--hostname NAME]\n\
\t [--ignore-system-defaults]\n\
@@ -136,7 +137,7 @@ Local_arguments ()
templates:,architecture:,bootstrap-config:,bootstrap-flavour:,bootstrap-keyring:,clean,
distribution:,mirror-bootstrap:,mirror-chroot:,mirror-chroot-security:,mirror-binary:,
mirror-binary-security:,categories:,chroot-filesystem:,union-filesystem:,exposed-root:,virtual-root-size:,
- hooks:,interactive:,keyring-packages:,language:,linux-flavours:,linux-packages:,
+ gzip-options:,hooks:,interactive:,keyring-packages:,language:,linux-flavours:,linux-packages:,
packages:,packages-lists:,tasks:,security:,symlinks:,sysvinit:,binary-filesystem:,binary-images:,
binary-indices:,bootappend-install:,bootappend-live:,bootloader:,checksums:,chroot-build:,
debian-installer:,debian-installer-distribution:,debian-installer-preseedfile:,debian-installer-gui:,
@@ -429,6 +430,11 @@ Local_arguments ()
shift 2
;;
+ --gzip-options)
+ GZIP_OPTIONS="${2}"
+ shift 2
+ ;;
+
--hooks)
LH_HOOKS="${2}"
shift 2
@@ -904,6 +910,7 @@ _QUIET="${_QUIET}"
# Internal stuff (FIXME)
APT_OPTIONS="${APT_OPTIONS}"
APTITUDE_OPTIONS="${APTITUDE_OPTIONS}"
+GZIP_OPTIONS="${GZIP_OPTIONS}"
EOF
# Creating lh_bootstrap_* configuration