PKGBUILDs/core/mkinitcpio/0001-use-gzip-for-compression-by-default.patch

54 lines
2 KiB
Diff
Raw Normal View History

2023-03-26 22:27:16 +00:00
From 19178cb8b2874f83fbd8b3659a2d1d532af881a3 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
index 08b95c5..41c29be 100644
--- a/man/mkinitcpio.conf.5.adoc
+++ b/man/mkinitcpio.conf.5.adoc
2022-12-10 01:25:14 +00:00
@@ -56,7 +56,7 @@ Variables
2021-02-20 17:19:54 +00:00
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
2023-03-22 01:05:52 +00:00
index 0c6dc60..f68d70c 100755
2021-02-20 17:19:54 +00:00
--- a/mkinitcpio
+++ b/mkinitcpio
2023-03-22 01:05:52 +00:00
@@ -856,7 +856,7 @@ if [[ -n "$_optgenimg" ]]; then
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
2023-03-22 01:05:52 +00:00
index 710e05f..4a2ce87 100644
2021-02-20 17:19:54 +00:00
--- a/mkinitcpio.conf
+++ b/mkinitcpio.conf
@@ -52,7 +52,7 @@ FILES=()
2022-11-24 16:39:57 +00:00
HOOKS=(base udev autodetect 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