-diff -urpa dracut-048.orig/dracut.sh dracut-048/dracut.sh
---- dracut-048.orig/dracut.sh 2018-07-06 08:37:51.000000000 +0000
-+++ dracut-048/dracut.sh 2018-07-21 21:09:03.431060990 +0000
-@@ -195,8 +195,6 @@ Creates initial ramdisk images for prelo
+diff -urpa dracut-056.orig/dracut.sh dracut-056/dracut.sh
+--- dracut-056.orig/dracut.sh 2022-02-18 12:32:53.000000000 +0100
++++ dracut-056/dracut.sh 2022-08-28 17:26:54.017178064 +0200
+@@ -202,8 +202,6 @@ Creates initial ramdisk images for prelo
--install-optional [LIST] Install the space separated list of files into the
initramfs, if they exist.
--gzip Compress the generated initramfs using gzip.
--bzip2 Compress the generated initramfs using bzip2.
Make sure your kernel has bzip2 decompression support
compiled in, otherwise you will not be able to boot.
-@@ -204,6 +202,8 @@ Creates initial ramdisk images for prelo
+@@ -211,6 +209,8 @@ Creates initial ramdisk images for prelo
Make sure your kernel has lzma support compiled in,
otherwise you will not be able to boot.
--xz Compress the generated initramfs using xz.
Make sure that your kernel has xz support compiled
in, otherwise you will not be able to boot.
--lzo Compress the generated initramfs using lzop.
-@@ -821,7 +821,7 @@ fi
+@@ -2388,7 +2388,7 @@ fi
if ! [[ $compress ]]; then
# check all known compressors, if none specified
-- for i in pigz gzip lz4 lzop zstd lzma xz lbzip2 bzip2 cat; do
-+ for i in xz lzma bzip2 lbzip2 gzip pigz lz4 lzop zstd cat; do
- command -v "$i" &>/dev/null || continue
+- for i in $DRACUT_COMPRESS_PIGZ $DRACUT_COMPRESS_GZIP $DRACUT_COMPRESS_LZ4 $DRACUT_COMPRESS_LZOP $DRACUT_COMPRESS_ZSTD $DRACUT_COMPRESS_LZMA $DRACUT_COMPRESS_XZ $DRACUT_COMPRESS_LBZIP2 $DRACUT_COMPRESS_BZIP2 $DRACUT_COMPRESS_CAT; do
++ for i in $DRACUT_COMPRESS_XZ $DRACUT_COMPRESS_LZMA $DRACUT_COMPRESS_BZIP2 $DRACUT_COMPRESS_LBZIP2 $DRACUT_COMPRESS_GZIP $DRACUT_COMPRESS_PIGZ $DRACUT_COMPRESS_LZ4 $DRACUT_COMPRESS_LZOP $DRACUT_COMPRESS_ZSTD $DRACUT_COMPRESS_CAT; do
+ [[ $i != "$DRACUT_COMPRESS_ZSTD" || $DRACUT_KERNEL_RD_ZSTD ]] || continue
+ command -v "$i" &> /dev/null || continue
compress="$i"
- break