2024-03-05 01:31:24 +00:00
|
|
|
From 74924b627ddc4093849b581d57c86a68dcea7000 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
|
2023-03-22 01:05:52 +00:00
|
|
|
Subject: [PATCH 1/3] use gzip for compression by default
|
2021-02-20 17:19:54 +00:00
|
|
|
|
|
|
|
---
|
2023-03-22 01:05:52 +00:00
|
|
|
man/mkinitcpio.conf.5.adoc | 2 +-
|
|
|
|
mkinitcpio | 2 +-
|
|
|
|
mkinitcpio.conf | 2 +-
|
2021-02-20 17:19:54 +00:00
|
|
|
3 files changed, 3 insertions(+), 3 deletions(-)
|
|
|
|
|
2023-03-22 01:05:52 +00:00
|
|
|
diff --git a/man/mkinitcpio.conf.5.adoc b/man/mkinitcpio.conf.5.adoc
|
2023-06-03 19:36:23 +00:00
|
|
|
index 69bbc6a..ad60b6b 100644
|
2023-03-22 01:05:52 +00:00
|
|
|
--- a/man/mkinitcpio.conf.5.adoc
|
|
|
|
+++ b/man/mkinitcpio.conf.5.adoc
|
2023-06-03 19:36:23 +00:00
|
|
|
@@ -55,7 +55,7 @@ override the main configuration file.
|
|
|
|
Defines a program to filter the generated image through. The kernel
|
|
|
|
understands the compression formats yielded by the *zstd*(1), *gzip*(1),
|
|
|
|
*bzip2*(1), *lz4*(1), *lzop*(1), *lzma*(1), and *xz*(1) compressors. If
|
|
|
|
- unspecified, this setting defaults to _zstd_ compression. In order to create
|
|
|
|
+ unspecified, this setting defaults to _gzip_ compression. In order to create
|
|
|
|
an uncompressed image, define this variable as _cat_.
|
|
|
|
+
|
|
|
|
It is not hard to realize that a filter such as a _tac_ or _rev_ will cause
|
2021-02-20 17:19:54 +00:00
|
|
|
diff --git a/mkinitcpio b/mkinitcpio
|
2024-03-05 01:31:24 +00:00
|
|
|
index d6bec2f..c6d5731 100755
|
2021-02-20 17:19:54 +00:00
|
|
|
--- a/mkinitcpio
|
|
|
|
+++ b/mkinitcpio
|
2024-03-05 01:31:24 +00:00
|
|
|
@@ -998,7 +998,7 @@ if [[ -n "$_optgenimg" ]]; then
|
2023-03-22 01:05:52 +00:00
|
|
|
die "Unable to write to '%s'" "$_optgenimg"
|
2021-02-20 17:19:54 +00:00
|
|
|
fi
|
|
|
|
|
2023-03-22 01:05:52 +00:00
|
|
|
- _optcompress="${_optcompress:-"${COMPRESSION:-zstd}"}"
|
|
|
|
+ _optcompress="${_optcompress:-"${COMPRESSION:-gzip}"}"
|
2021-02-20 17:19:54 +00:00
|
|
|
if ! type -P "$_optcompress" >/dev/null; then
|
2023-03-22 01:05:52 +00:00
|
|
|
warning "Unable to locate compression method: '%s'" "$_optcompress"
|
|
|
|
_optcompress='cat'
|
2021-02-20 17:19:54 +00:00
|
|
|
diff --git a/mkinitcpio.conf b/mkinitcpio.conf
|
2024-03-05 01:31:24 +00:00
|
|
|
index fc54be6..f728198 100644
|
2021-02-20 17:19:54 +00:00
|
|
|
--- a/mkinitcpio.conf
|
|
|
|
+++ b/mkinitcpio.conf
|
2024-03-05 01:31:24 +00:00
|
|
|
@@ -55,7 +55,7 @@ FILES=()
|
|
|
|
HOOKS=(base udev autodetect microcode modconf kms keyboard keymap consolefont block filesystems fsck)
|
2021-02-20 17:19:54 +00:00
|
|
|
|
|
|
|
# COMPRESSION
|
|
|
|
-# Use this to compress the initramfs image. By default, zstd compression
|
2023-03-22 01:05:52 +00:00
|
|
|
+# Use this to compress the initramfs image. By default, gzip compression
|
2021-02-20 17:19:54 +00:00
|
|
|
# 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
|
|
|
|