]> TLD Linux GIT Repositories - packages/dracut.git/blob - xz_compressor.patch
- require all compressors (except lzo, which isn't much popular)
[packages/dracut.git] / xz_compressor.patch
1 diff -urN dracut-037.orig/dracut.sh dracut-037/dracut.sh
2 --- dracut-037.orig/dracut.sh   2014-03-19 16:16:08.000000000 +0000
3 +++ dracut-037/dracut.sh        2014-05-17 14:56:39.530999661 +0000
4 @@ -159,8 +159,6 @@
5    -I, --install [LIST]  Install the space separated list of files into the
6                           initramfs.
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 @@ -168,12 +166,14 @@
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 +  --lzo                 Compress the generated initramfs using lzop.
23                           Make sure that your kernel has lzo support compiled
24                           in, otherwise you will not be able to boot.
25 -  --lz4                  Compress the generated initramfs using lz4.
26 +  --lz4                 Compress the generated initramfs using lz4.
27                           Make sure that your kernel has lz4 support compiled
28                           in, otherwise you will not be able to boot.
29    --compress [COMPRESSION] Compress the generated initramfs with the
30 @@ -789,7 +789,7 @@
31  fw_dir=${fw_dir//:/ }
32  
33  # handle compression options.
34 -[[ $compress ]] || compress="gzip"
35 +[[ $compress ]] || compress="xz"
36  case $compress in
37      bzip2) compress="bzip2 -9";;
38      lzma)  compress="lzma -9 -T0";;