diff options
author | Stefano Brivio <sbrivio@redhat.com> | 2022-03-30 05:01:43 +0200 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2022-04-05 18:23:05 +0200 |
commit | 051fd93351848c3aaee158a6d84ba4af1beb584c (patch) | |
tree | bb3031392d207244c6d8906975c7015f63413f4e | |
parent | 93b9d6ca0562d8a2fcc44bd2d7d73dfc1cba9191 (diff) | |
download | mbuto-051fd93351848c3aaee158a6d84ba4af1beb584c.tar mbuto-051fd93351848c3aaee158a6d84ba4af1beb584c.tar.gz mbuto-051fd93351848c3aaee158a6d84ba4af1beb584c.tar.bz2 mbuto-051fd93351848c3aaee158a6d84ba4af1beb584c.tar.lz mbuto-051fd93351848c3aaee158a6d84ba4af1beb584c.tar.xz mbuto-051fd93351848c3aaee158a6d84ba4af1beb584c.tar.zst mbuto-051fd93351848c3aaee158a6d84ba4af1beb584c.zip |
mbuto: Default to 'none' for compression
It's typically faster also to boot, and we don't want to take
seconds when running in a subshell on qemu's command line.
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
-rwxr-xr-x | mbuto | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -336,11 +336,11 @@ cpio_init() { # cpio_compress() - Compress archive, test available methods if none is selected # $1: Existing CPIO archive cpio_compress() { - [ "${COMPRESS}" = "none" ] && return + { [ -z "${COMPRESS}" ] || [ "${COMPRESS}" = "none" ]; } && return info "Compressing CPIO archive ${1}" - if [ -n "${COMPRESS}" ] && [ "${COMPRESS}" != "auto" ]; then + if [ "${COMPRESS}" != "auto" ]; then [ "${COMPRESS}" = "lzo" ] && __cmd="lzop" || __cmd="${COMPRESS}" cmd_check "${__cmd}" @@ -854,7 +854,7 @@ usage() { echo echo "Options:" echo " -c gzip|lz4|lzma|lzo|auto|none" - echo " compression method for CPIO file. Default: auto" + echo " compression method for CPIO file. Default: none" echo " -d" echo " don't strip binary objects" echo " -f PATH" |