summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChocobo1 <Chocobo1@users.noreply.github.com>2020-10-30 05:20:28 +0100
committerChocobo1 <Chocobo1@users.noreply.github.com>2020-10-30 05:33:43 +0100
commitff24ed89f8074392df4e0098e3ebb4f2ee0db02e (patch)
treefac8868b1ada9c9f15c677ad92057566e6608f40
parent6e4603638b459468d235437c6a47584d609a86a2 (diff)
downloadmkinitcpio-ff24ed89f8074392df4e0098e3ebb4f2ee0db02e.tar.gz
mkinitcpio-ff24ed89f8074392df4e0098e3ebb4f2ee0db02e.tar.xz
Allow user to override default compression options
-rwxr-xr-xmkinitcpio6
1 files changed, 3 insertions, 3 deletions
diff --git a/mkinitcpio b/mkinitcpio
index 9b585cd..352ee4e 100755
--- a/mkinitcpio
+++ b/mkinitcpio
@@ -206,13 +206,13 @@ build_image() {
msg "Creating %s-compressed initcpio image: %s" "$compress" "$out"
;;&
xz)
- COMPRESSION_OPTIONS+=('--check=crc32')
+ COMPRESSION_OPTIONS=('--check=crc32' "${COMPRESSION_OPTIONS[@]}")
;;
lz4)
- COMPRESSION_OPTIONS+=('-l')
+ COMPRESSION_OPTIONS=('-l' "${COMPRESSION_OPTIONS[@]}")
;;
zstd)
- COMPRESSION_OPTIONS+=('-19' '-T0')
+ COMPRESSION_OPTIONS=('-19' '-T0' "${COMPRESSION_OPTIONS[@]}")
;;
esac