2024-05-14 15:45:07 +00:00
|
|
|
From 8c739f6a9c89e27a41846090600c247abf9ca4a5 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
|
2024-05-04 03:02:06 +00:00
|
|
|
index 3029811..1bd60c5 100644
|
2023-03-22 01:05:52 +00:00
|
|
|
--- a/man/mkinitcpio.conf.5.adoc
|
|
|
|
+++ b/man/mkinitcpio.conf.5.adoc
|
2024-05-04 03:02:06 +00:00
|
|
|
@@ -56,7 +56,7 @@ override the main configuration file.
|
2023-06-03 19:36:23 +00:00
|
|
|
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
|
2024-05-04 03:02:06 +00:00
|
|
|
- unspecified, this setting defaults to _zstd_ compression for Linux ≥ 5.9 and
|
|
|
|
+ unspecified, this setting defaults to _gzip_ compression for Linux ≥ 5.9 and
|
|
|
|
gzip compression for Linux < 5.9. In order to create an uncompressed image,
|
|
|
|
define this variable as _cat_.
|
2023-06-03 19:36:23 +00:00
|
|
|
+
|
2021-02-20 17:19:54 +00:00
|
|
|
diff --git a/mkinitcpio b/mkinitcpio
|
2024-05-04 03:02:06 +00:00
|
|
|
index df8ead5..17eae23 100755
|
2021-02-20 17:19:54 +00:00
|
|
|
--- a/mkinitcpio
|
|
|
|
+++ b/mkinitcpio
|
2024-05-04 03:02:06 +00:00
|
|
|
@@ -413,7 +413,7 @@ build_image() {
|
|
|
|
}
|
2021-02-20 17:19:54 +00:00
|
|
|
|
2024-05-04 03:02:06 +00:00
|
|
|
validate_compression() {
|
|
|
|
- local major minor compression_fallback='zstd'
|
|
|
|
+ local major minor compression_fallback='gzip'
|
|
|
|
|
|
|
|
if [[ -z "$_optcompress" && -v COMPRESSION_OPTIONS && ! -v COMPRESSION ]]; then
|
|
|
|
warning 'COMPRESSION_OPTIONS is set without also setting COMPRESSION. Configure COMPRESSION explicitly!'
|
2021-02-20 17:19:54 +00:00
|
|
|
diff --git a/mkinitcpio.conf b/mkinitcpio.conf
|
2024-05-04 03:02:06 +00:00
|
|
|
index c07aa9e..4c0c571 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
|
2024-05-04 03:02:06 +00:00
|
|
|
# is used for Linux ≥ 5.9 and gzip compression is used for Linux < 5.9.
|
|
|
|
# Use 'cat' to create an uncompressed image.
|
2021-02-20 17:19:54 +00:00
|
|
|
#COMPRESSION="zstd"
|
|
|
|
--
|
2022-10-25 12:34:17 +00:00
|
|
|
2.36.1
|
2021-02-20 17:19:54 +00:00
|
|
|
|