40 lines
1.7 KiB
Diff
40 lines
1.7 KiB
Diff
Because not all Void kernels may support zstd, change the default initramfs
|
|
compression to gzip.
|
|
|
|
diff -ur a/man/mkinitcpio.conf.5.adoc b/man/mkinitcpio.conf.5.adoc
|
|
--- a/man/mkinitcpio.conf.5.adoc
|
|
+++ b/man/mkinitcpio.conf.5.adoc
|
|
@@ -56,7 +56,7 @@
|
|
Defines a program to filter the generated image through. The kernel
|
|
understands the compression formats yielded by the *zstd*, *gzip*, *bzip2*,
|
|
*lz4*, *lzop*, *lzma*, and *xz* compressors. If unspecified, this setting
|
|
- defaults to *zstd* compression. In order to create an uncompressed image,
|
|
+ defaults to *gzip* compression. In order to create an uncompressed image,
|
|
define this variable as *cat*.
|
|
+
|
|
It's not hard to realize that a filter such as a *tac* or *rev* will cause
|
|
diff -ur a/mkinitcpio b/mkinitcpio
|
|
--- a/mkinitcpio
|
|
+++ b/mkinitcpio
|
|
@@ -856,7 +856,7 @@
|
|
die "Unable to write to '%s'" "$_optgenimg"
|
|
fi
|
|
|
|
- _optcompress="${_optcompress:-"${COMPRESSION:-zstd}"}"
|
|
+ _optcompress="${_optcompress:-"${COMPRESSION:-gzip}"}"
|
|
if ! type -P "$_optcompress" >/dev/null; then
|
|
warning "Unable to locate compression method: '%s'" "$_optcompress"
|
|
_optcompress='cat'
|
|
diff -ur a/mkinitcpio.conf b/mkinitcpio.conf
|
|
--- a/mkinitcpio.conf 2021-02-16 21:37:31.000000000 -0500
|
|
+++ b/mkinitcpio.conf 2021-05-17 09:34:24.752605714 -0400
|
|
@@ -52,7 +52,7 @@
|
|
HOOKS=(base udev autodetect modconf kms keyboard keymap consolefont block filesystems fsck)
|
|
|
|
# COMPRESSION
|
|
-# Use this to compress the initramfs image. By default, zstd compression
|
|
+# Use this to compress the initramfs image. By default, gzip compression
|
|
# is used. Use 'cat' to create an uncompressed image.
|
|
#COMPRESSION="zstd"
|
|
#COMPRESSION="gzip"
|