]> TLD Linux GIT Repositories - packages/dracut.git/blobdiff - compressors.patch
- updated to 059
[packages/dracut.git] / compressors.patch
index 0a5aa0f6af983bac2a9b1808835deec5145931b9..a6d6b96bb8a9dcadbd2cc82d07299226b123924a 100644 (file)
@@ -1,8 +1,8 @@
-diff -urpa dracut-047.orig/dracut.sh dracut-047/dracut.sh
---- dracut-047.orig/dracut.sh  2018-03-15 12:07:49.000000000 +0000
-+++ dracut-047/dracut.sh       2018-03-15 12:10:37.580977945 +0000
-@@ -180,8 +180,6 @@ Creates initial ramdisk images for prelo
-   --install-optional [LIST]  Install the space separated list of files into the
+diff -urpa dracut-059.orig/dracut.sh dracut-059/dracut.sh
+--- dracut-059.orig/dracut.sh  2022-12-24 17:49:27.000000000 +0100
++++ dracut-059/dracut.sh       2024-04-03 01:29:40.532147553 +0200
+@@ -220,8 +220,6 @@ Creates initial ramdisk images for prelo
+                         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
@@ -10,7 +10,7 @@ diff -urpa dracut-047.orig/dracut.sh dracut-047/dracut.sh
    --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.
-@@ -189,6 +187,8 @@ Creates initial ramdisk images for prelo
+@@ -229,6 +227,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.
@@ -19,11 +19,12 @@ diff -urpa dracut-047.orig/dracut.sh dracut-047/dracut.sh
                           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.
-@@ -809,6 +809,7 @@ fi
+@@ -2507,7 +2507,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