45 lines
1.7 KiB
Diff
45 lines
1.7 KiB
Diff
From b2d7561b98d08c7e4018aa22dc36dc1242e50f09 Mon Sep 17 00:00:00 2001
|
|
From: Antonio Alvarez Feijoo <antonio.feijoo@suse.com>
|
|
Date: Mon, 10 Oct 2022 10:25:33 +0200
|
|
Subject: [PATCH] fix(dracut): replace invalid lzo command with lzop for LZO
|
|
compression
|
|
|
|
Fixes issue #1999
|
|
|
|
Reference:https://github.com/dracutdevs/dracut/commit/b2d7561b98d08c7e4018aa22dc36dc1242e50f09
|
|
Conflict:Require adaption
|
|
---
|
|
dracut.sh | 2 +-
|
|
man/dracut.conf.5.asc | 2 +-
|
|
2 files changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/dracut.sh b/dracut.sh
|
|
index d3e1df39..78801a42 100755
|
|
--- a/dracut.sh
|
|
+++ b/dracut.sh
|
|
@@ -769,7 +769,7 @@ while :; do
|
|
--bzip2) compress_l="bzip2" ;;
|
|
--lzma) compress_l="lzma" ;;
|
|
--xz) compress_l="xz" ;;
|
|
- --lzo) compress_l="lzo" ;;
|
|
+ --lzo) compress_l="lzop" ;;
|
|
--lz4) compress_l="lz4" ;;
|
|
--zstd) compress_l="zstd" ;;
|
|
--no-compress) _no_compress_l="cat" ;;
|
|
diff --git a/man/dracut.conf.5.asc b/man/dracut.conf.5.asc
|
|
index 39dfd34f..45192fa0 100644
|
|
--- a/man/dracut.conf.5.asc
|
|
+++ b/man/dracut.conf.5.asc
|
|
@@ -80,7 +80,7 @@ Configuration files must have the extension .conf; other extensions are ignored.
|
|
Specify additional files to include in the initramfs, separated by spaces,
|
|
if they exist.
|
|
|
|
-*compress=*"__{cat|bzip2|lzma|xz|gzip|lzo|lz4|zstd|<compressor [args ...]>}__"::
|
|
+*compress=*"__{cat|bzip2|lzma|xz|gzip|lzop|lz4|zstd|<compressor [args ...]>}__"::
|
|
Compress the generated initramfs using the passed compression program. If
|
|
you pass it just the name of a compression program, it will call that
|
|
program with known-working arguments. If you pass arguments, it will be called
|
|
--
|
|
2.33.0
|
|
|