Warning when updating mkinitcpio 29-1

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:

--- 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)

4 Likes