# Warning when updating mkinitcpio 29-1

**URL:** <https://forum.endeavouros.com/t/warning-when-updating-mkinitcpio-29-1/9350>\
**Category:** Newbie\
**Created:** [October 29, 2020, 11:06pm UTC](https://forum.endeavouros.com/t/warning-when-updating-mkinitcpio-29-1/9350 "2020-10-29T23:06:57Z")\
**Posts on this page:** 1\
**Showing post:** 19

<div class="post-metadata">

**Author:** ![anon31687413](https://forum.endeavouros.com/letter_avatar_proxy/v4/letter/a/bc8723/32.png) [@anon31687413](https://forum.endeavouros.com/u/anon31687413)\
**Post date:** [October 30, 2020, 8:17am UTC](https://forum.endeavouros.com/t/warning-when-updating-mkinitcpio-29-1/9350/19 "2020-10-30T08:17:04Z")

</div>

If all the compression options are commented out, GZIP is used.

Nothing to be worried about.

I see that the new mkinitcpio script uses `--19` as compression ratio for ZSTD.  
IMO way too high and thus too slow.

I modified the script like this:

```auto
--- a/usr/bin/mkinitcpio 2020-10-30 09:21:18.152290353 +0100
+++ b/usr/bin/mkinitcpio 2020-10-30 09:21:56.412089593 +0100
@@ -206,13 +206,13 @@
             msg "Creating %s-compressed initcpio image: %s" "$compress" "$out"
             ;;&
         xz)
- COMPRESSION_OPTIONS+=('--check=crc32')
+ COMPRESSION_OPTIONS+=('-4' '--check=crc32')
             ;;
         lz4)
- COMPRESSION_OPTIONS+=('-l')
+ COMPRESSION_OPTIONS+=('-4' '-l')
             ;;
         zstd)
- COMPRESSION_OPTIONS+=('-19' '-T0')
+ COMPRESSION_OPTIONS+=('-13' '-T2')
             ;;
     esac

```

(EDIT: clean up patch)

---

_[View the full topic](https://forum.endeavouros.com/t/warning-when-updating-mkinitcpio-29-1/9350)._
