2022-10-25 12:34:17 +00:00
|
|
|
From f0eddfb45bbe75257c679020838709e0c8e51a0c Mon Sep 17 00:00:00 2001
|
2021-02-20 17:19:54 +00:00
|
|
|
From: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
|
|
Date: Sat, 20 Feb 2021 10:02:34 -0700
|
2022-03-16 04:26:49 +00:00
|
|
|
Subject: [PATCH 1/2] use gzip for compression by default
|
2021-02-20 17:19:54 +00:00
|
|
|
|
|
|
|
---
|
|
|
|
man/mkinitcpio.conf.5.txt | 2 +-
|
|
|
|
mkinitcpio | 2 +-
|
|
|
|
mkinitcpio.conf | 2 +-
|
|
|
|
3 files changed, 3 insertions(+), 3 deletions(-)
|
|
|
|
|
|
|
|
diff --git a/man/mkinitcpio.conf.5.txt b/man/mkinitcpio.conf.5.txt
|
|
|
|
index 0383360..46538d2 100644
|
|
|
|
--- a/man/mkinitcpio.conf.5.txt
|
|
|
|
+++ b/man/mkinitcpio.conf.5.txt
|
|
|
|
@@ -55,7 +55,7 @@ Variables
|
|
|
|
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 --git a/mkinitcpio b/mkinitcpio
|
2022-10-25 12:34:17 +00:00
|
|
|
index 2781e3a..1d48cc6 100755
|
2021-02-20 17:19:54 +00:00
|
|
|
--- a/mkinitcpio
|
|
|
|
+++ b/mkinitcpio
|
2022-10-25 12:34:17 +00:00
|
|
|
@@ -689,7 +689,7 @@ if [[ $_optgenimg ]]; then
|
2021-02-20 17:19:54 +00:00
|
|
|
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 --git a/mkinitcpio.conf b/mkinitcpio.conf
|
|
|
|
index 3494fab..3c902f6 100644
|
|
|
|
--- a/mkinitcpio.conf
|
|
|
|
+++ b/mkinitcpio.conf
|
|
|
|
@@ -52,7 +52,7 @@ FILES=()
|
|
|
|
HOOKS=(base udev autodetect modconf block filesystems keyboard fsck)
|
|
|
|
|
|
|
|
# COMPRESSION
|
|
|
|
-# Use this to compress the initramfs image. By default, zstd compression
|
|
|
|
+# Use this to compress the initramfs image. By default, gazip compression
|
|
|
|
# is used. Use 'cat' to create an uncompressed image.
|
|
|
|
#COMPRESSION="zstd"
|
|
|
|
#COMPRESSION="gzip"
|
|
|
|
--
|
2022-10-25 12:34:17 +00:00
|
|
|
2.36.1
|
2021-02-20 17:19:54 +00:00
|
|
|
|