From 051fd93351848c3aaee158a6d84ba4af1beb584c Mon Sep 17 00:00:00 2001 From: Stefano Brivio Date: Wed, 30 Mar 2022 05:01:43 +0200 Subject: 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 --- mbuto | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mbuto b/mbuto index 23eaf6e..ef5faf7 100755 --- a/mbuto +++ b/mbuto @@ -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" -- cgit v1.2.3