]> git.pld-linux.org Git - projects/geninitrd.git/commitdiff
Allow xz only and not lzma. -9 for xz is back.
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Fri, 4 Sep 2009 10:58:29 +0000 (10:58 +0000)
committerArkadiusz Miśkiewicz <arekm@maven.pl>
Fri, 4 Sep 2009 10:58:29 +0000 (10:58 +0000)
svn-id: @10526

geninitrd

index faf78ee54d63c943fb988d5ff6c0f8ba421f27c0..8f44607ca9c13be07417bf23c8893c62d66e5a20 100755 (executable)
--- a/geninitrd
+++ b/geninitrd
@@ -47,7 +47,7 @@ usage() {
        uname_r=$(uname -r)
        echo "usage: $PROGRAM [--version] [-v] [-f] [--ifneeded] [--preload <module>]"
        echo "       [--with=<module>] [--image-version] [--fstab=<fstab>] [--nocompress]"
-       echo "       [--compress=yes|lzma|bzip2|gzip]"
+       echo "       [--compress=yes|xz|bzip2|gzip]"
        echo "       [--initrdfs=rom|initramfs|ext2|cram] [--modules-conf=<modules.conf>]"
        echo "       [--with-bootsplash] [--without-bootsplash]"
        echo "       [--with-fbsplash] [--without-fbsplash]"
@@ -790,7 +790,7 @@ sym_exists() {
 find_compressor() {
        local mode="$1"
        # the best compressor list
-       local compressors='lzma bzip2 gzip'
+       local compressors='xz bzip2 gzip'
 
        # a specified one, take it
        if ! is_yes "$mode"; then
@@ -802,9 +802,9 @@ find_compressor() {
        local c prog map=/boot/System.map-$kernel
        for c in $compressors; do
                case $c in
-               lzma)
+               xz)
                        sym=unlzma
-                       prog=/usr/bin/lzma
+                       prog=/usr/bin/xz
                        ;;
                bzip2)
                        sym=bzip2
@@ -1327,8 +1327,8 @@ if ! is_no "$COMPRESS"; then
        # TODO: the image name (specified from kernel.spec) already contains
        # extension, which is .gz most of the time.
        case "$compressor" in
-       lzma)
-               lzma < "$IMAGE" > "$tmp"
+       xz)
+               xz -9 < "$IMAGE" > "$tmp"
                ;;
        bzip2)
                bzip2 -9 < "$IMAGE" > "$tmp"
This page took 0.041659 seconds and 4 git commands to generate.