2 ===================================================================
3 --- geninitrd (wersja 10524)
4 +++ geninitrd (kopia robocza)
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|lzma|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]"
17 # the best compressor list
18 - local compressors='lzma bzip2 gzip'
19 + local compressors='xz lzma bzip2 gzip'
21 # a specified one, take it
22 if ! is_yes "$mode"; then
24 local c prog map=/boot/System.map-$kernel
25 for c in $compressors; do
38 @@ -1327,8 +1331,12 @@
39 # TODO: the image name (specified from kernel.spec) already contains
40 # extension, which is .gz most of the time.
43 + # don't use -9 here since kernel won't understand it
44 + xz --format=xz --check=crc32 --lzma2=preset=6e,dict=1MiB < "$IMAGE" > "$tmp"
47 - lzma -9 < "$IMAGE" > "$tmp"
48 + xz --format=lzma -9 < "$IMAGE" > "$tmp"
51 bzip2 -9 < "$IMAGE" > "$tmp"