]> git.pld-linux.org Git - packages/geninitrd.git/blame - geninitrd-lzma.patch
xz -9 (no longer as lzma) is back
[packages/geninitrd.git] / geninitrd-lzma.patch
CommitLineData
05f63260
AM
1Index: geninitrd
2===================================================================
3--- geninitrd (wersja 10524)
4+++ geninitrd (kopia robocza)
f99b3add
AM
5@@ -47,7 +47,7 @@
6 uname_r=$(uname -r)
7 echo "usage: $PROGRAM [--version] [-v] [-f] [--ifneeded] [--preload <module>]"
8 echo " [--with=<module>] [--image-version] [--fstab=<fstab>] [--nocompress]"
9- echo " [--compress=yes|lzma|bzip2|gzip]"
10+ echo " [--compress=yes|xz|bzip2|gzip]"
11 echo " [--initrdfs=rom|initramfs|ext2|cram] [--modules-conf=<modules.conf>]"
12 echo " [--with-bootsplash] [--without-bootsplash]"
13 echo " [--with-fbsplash] [--without-fbsplash]"
14@@ -790,7 +790,7 @@
15 find_compressor() {
16 local mode="$1"
17 # the best compressor list
18- local compressors='lzma bzip2 gzip'
19+ local compressors='xz bzip2 gzip'
20
21 # a specified one, take it
22 if ! is_yes "$mode"; then
23@@ -802,9 +802,9 @@
24 local c prog map=/boot/System.map-$kernel
25 for c in $compressors; do
26 case $c in
27- lzma)
28+ xz)
29 sym=unlzma
30- prog=/usr/bin/lzma
31+ prog=/usr/bin/xz
32 ;;
33 bzip2)
34 sym=bzip2
35@@ -1327,8 +1327,8 @@
36 # TODO: the image name (specified from kernel.spec) already contains
05f63260
AM
37 # extension, which is .gz most of the time.
38 case "$compressor" in
f99b3add 39- lzma)
05f63260 40- lzma -9 < "$IMAGE" > "$tmp"
f99b3add
AM
41+ xz)
42+ xz -9 < "$IMAGE" > "$tmp"
05f63260
AM
43 ;;
44 bzip2)
45 bzip2 -9 < "$IMAGE" > "$tmp"
This page took 0.110584 seconds and 4 git commands to generate.