New option -z to use ZLIB instead of LZMA compression
authorMichael Prokop <devnull@localhost>
Sun, 9 Dec 2007 14:08:43 +0000 (15:08 +0100)
committerMichael Prokop <devnull@localhost>
Sun, 9 Dec 2007 14:08:43 +0000 (15:08 +0100)
debian/changelog
docs/grml-live.txt
grml-live

index ef3fcec..0ab5201 100644 (file)
@@ -1,5 +1,6 @@
 grml-live (0.0.11) unstable; urgency=low
 
+  * New option -z to use ZLIB instead of LZMA compression.
   * Add new class XORG.
   * Add X.org packages to GRML_MEDIUM.
   * Make sure /etc/X11/X is not a symlink to /bin/true. Check and fix
index c4749fe..ffd9315 100644 (file)
@@ -12,7 +12,7 @@ Synopsis
 
 grml-live [-a <architecture>] [-c <classe[s]>] [-g <grml_name>] [-i <iso_name> ]
 [-o <output_directory>] [-r <release_name>] [-s <suite>] [-t
-<template_directory>] [-v <version_number>] [-FVhu]
+<template_directory>] [-v <version_number>] [-FVhuz]
 
 *******************************************************************************
 Important! This document is growing as requested. If you have questions which
@@ -139,6 +139,10 @@ Specify version number of the release.
 
 Increase verbosity in the build process.
 
+  -z::
+
+Use ZLIB instead of LZMA compression in mksquashfs part of the build process.
+
 Usage examples
 --------------
 
index a4a1fa8..2d8781e 100755 (executable)
--- a/grml-live
+++ b/grml-live
@@ -187,7 +187,7 @@ http://grml.org/bugs/
 
 # command line parsing {{{
 
-while getopts "a:C:c:g:i:o:r:s:t:v:FhuV" opt; do
+while getopts "a:C:c:g:i:o:r:s:t:v:FhuVz" opt; do
   case "$opt" in
     a) ARCH="$OPTARG" ;;
     c) CLASSES="$OPTARG" ;;
@@ -207,6 +207,7 @@ while getopts "a:C:c:g:i:o:r:s:t:v:FhuV" opt; do
     h) usage ; bailout 0 ;;
     u) UPDATE=1 ;;
     V) VERBOSE="-v" ;;
+    z) SQUASHFS_COMPRESSION="-nolzma" ;;
     ?) echo "invalid option -$OPTARG" >&2; bailout 1 ;;
   esac
 done
@@ -536,7 +537,7 @@ else
 
    # execute squashfs:
    log "mksquashfs $CHROOT_OUTPUT/* $BUILD_OUTPUT/live/grml.squashfs -noappend"
-   mksquashfs $CHROOT_OUTPUT/* $BUILD_OUTPUT/live/grml.squashfs -noappend
+   mksquashfs $CHROOT_OUTPUT/* $BUILD_OUTPUT/live/grml.squashfs -noappend $SQUASHFS_OPTIONS $SQUASHFS_COMPRESSION
    log "Finished execution of stage 'squashfs' [$(date)]"
    einfo "Finished execution of stage 'squashfs'" ; eend 0
 fi