diff -ur dracut-ng-106.orig/dracut.sh dracut-ng-106/dracut.sh --- dracut-ng-106.orig/dracut.sh 2025-02-01 02:20:41.000000000 +0100 +++ dracut-ng-106/dracut.sh 2025-04-19 11:24:36.317252742 +0200 @@ -237,8 +237,6 @@ Install the space separated list of files into the initramfs, if they exist. --gzip Compress the generated initramfs using gzip. - This will be done by default, unless another - compression option or --no-compress is passed. --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. @@ -246,6 +244,8 @@ Make sure your kernel has lzma support compiled in, otherwise you will not be able to boot. --xz Compress the generated initramfs using xz. + This will be done by default, unless another + compression option or --no-compress is passed. 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. @@ -2440,7 +2440,7 @@ if ! [[ $compress ]]; then # check all known compressors, if none specified - for i in $DRACUT_COMPRESS_ZSTD $DRACUT_COMPRESS_PIGZ $DRACUT_COMPRESS_GZIP $DRACUT_COMPRESS_LZ4 $DRACUT_COMPRESS_LZOP $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_ZSTD $DRACUT_COMPRESS_LZOP $DRACUT_COMPRESS_CAT; do command -v "$i" &> /dev/null || continue check_kernel_compress_support "$i" || continue compress="$i"