aboutgitcode
diff options
context:
space:
mode:
authorStefano Brivio <sbrivio@redhat.com>2022-03-30 05:01:43 +0200
committerStefano Brivio <sbrivio@redhat.com>2022-04-05 18:23:05 +0200
commit051fd93351848c3aaee158a6d84ba4af1beb584c (patch)
treebb3031392d207244c6d8906975c7015f63413f4e
parent93b9d6ca0562d8a2fcc44bd2d7d73dfc1cba9191 (diff)
downloadmbuto-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-xmbuto6
1 files 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"