]> TLD Linux GIT Repositories - packages/dracut.git/blob - compressors.patch
- renamed, now it changes order in which compressors are detected
[packages/dracut.git] / compressors.patch
1 diff -ur dracut-044.orig/dracut.sh dracut-044/dracut.sh
2 --- dracut-044.orig/dracut.sh   2015-11-30 12:50:20.000000000 +0000
3 +++ dracut-044/dracut.sh        2015-11-30 12:59:15.110305000 +0000
4 @@ -173,8 +173,6 @@
5    --install-optional [LIST]  Install the space separated list of files into the
6                           initramfs, if they exist.
7    --gzip                Compress the generated initramfs using gzip.
8 -                         This will be done by default, unless another
9 -                         compression option or --no-compress is passed.
10    --bzip2               Compress the generated initramfs using bzip2.
11                           Make sure your kernel has bzip2 decompression support
12                           compiled in, otherwise you will not be able to boot.
13 @@ -182,6 +180,8 @@
14                           Make sure your kernel has lzma support compiled in,
15                           otherwise you will not be able to boot.
16    --xz                  Compress the generated initramfs using xz.
17 +                         This will be done by default, unless another
18 +                         compression option or --no-compress is passed.
19                           Make sure that your kernel has xz support compiled
20                           in, otherwise you will not be able to boot.
21    --lzo                 Compress the generated initramfs using lzop.
22 @@ -769,7 +769,7 @@
23  
24  if ! [[ $compress ]]; then
25      # check all known compressors, if none specified
26 -    for i in pigz gzip lz4 lzop lzma xz lbzip2 bzip2 cat; do
27 +    for i in xz lzma bzip2 lbzip2 gzip pigz lz4 lzop cat; do
28          command -v "$i" &>/dev/null || continue
29          compress="$i"
30          break