gzip-default.patch 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. Because not all Void kernels may support zstd, change the default initramfs
  2. compression to gzip.
  3. diff -ur a/man/mkinitcpio.conf.5.txt b/man/mkinitcpio.conf.5.txt
  4. --- a/man/mkinitcpio.conf.5.txt 2021-02-16 21:37:31.000000000 -0500
  5. +++ b/man/mkinitcpio.conf.5.txt 2021-05-17 09:33:32.418504652 -0400
  6. @@ -55,7 +55,7 @@
  7. Defines a program to filter the generated image through. The kernel
  8. understands the compression formats yielded by the *zstd*, *gzip*, *bzip2*,
  9. *lz4*, *lzop*, *lzma*, and *xz* compressors. If unspecified, this setting
  10. - defaults to *zstd* compression. In order to create an uncompressed image,
  11. + defaults to *gzip* compression. In order to create an uncompressed image,
  12. define this variable as *cat*.
  13. +
  14. It's not hard to realize that a filter such as a *tac* or *rev* will cause
  15. diff -ur a/mkinitcpio b/mkinitcpio
  16. --- a/mkinitcpio 2021-02-16 21:37:31.000000000 -0500
  17. +++ b/mkinitcpio 2021-05-17 09:34:15.970588222 -0400
  18. @@ -508,7 +508,7 @@
  19. die 'Unable to write to %s' "$_optgenimg"
  20. fi
  21. - _optcompress=${_optcompress:-${COMPRESSION:-zstd}}
  22. + _optcompress=${_optcompress:-${COMPRESSION:-gzip}}
  23. if ! type -P "$_optcompress" >/dev/null; then
  24. warning "Unable to locate compression method: %s" "$_optcompress"
  25. _optcompress=cat
  26. diff -ur a/mkinitcpio.conf b/mkinitcpio.conf
  27. --- a/mkinitcpio.conf 2021-02-16 21:37:31.000000000 -0500
  28. +++ b/mkinitcpio.conf 2021-05-17 09:34:24.752605714 -0400
  29. @@ -52,7 +52,7 @@
  30. HOOKS=(base udev autodetect modconf block filesystems keyboard fsck)
  31. # COMPRESSION
  32. -# Use this to compress the initramfs image. By default, zstd compression
  33. +# Use this to compress the initramfs image. By default, gzip compression
  34. # is used. Use 'cat' to create an uncompressed image.
  35. #COMPRESSION="zstd"
  36. #COMPRESSION="gzip"