]> git.pld-linux.org Git - projects/geninitrd.git/commitdiff
- turn suspend2 on by default
authorJan Rękorajski <baggins@pld-linux.org>
Sat, 6 May 2006 18:33:58 +0000 (18:33 +0000)
committerJan Rękorajski <baggins@pld-linux.org>
Sat, 6 May 2006 18:33:58 +0000 (18:33 +0000)
- load required module for suspend2

svn-id: @7385

geninitrd

index 5f1a71e4c65fed54ec27d90f13d1a93b62a9f87c..883c7a595e642fe80a2d286ead51c1dd5fa97ad0 100755 (executable)
--- a/geninitrd
+++ b/geninitrd
@@ -21,7 +21,7 @@ USERAIDSTART="yes"
 USEMDADMSTATIC="no"
 USEINSMODSTATIC="no"
 USE_SUSPEND="no"
-USE_SUSPEND2="no"
+USE_SUSPEND2="yes"
 uselvm="no"
 usenfs="no"
 # it should be safe to remove scsi_mod from here, but I'm not sure...
@@ -58,7 +58,7 @@ usage () {
        echo "       [--initrdfs=rom|ext2|cram] [--modules-conf=<modules.conf>]" 
        echo "       [--with-raidstart] [--without-raidstart] [--with-insmod-static]" 
        echo "       [--without-bootsplash] [--lvmtoolsversion=1|2] [--without-udev]"
-       echo "       [--with-suspend] [--with-suspend2] [--without-dmraid]"
+       echo "       [--with-suspend] [--without-suspend2] [--without-dmraid]"
        echo "       <initrd-image> <kernel-version>" 
        echo "       (ex: `basename $0` /boot/initrd-2.2.5-15.img 2.2.5-15)" 
        exit 1
@@ -715,8 +715,8 @@ while [ $# -gt 0 ]; do
        --with-suspend)
                USE_SUSPEND="yes";
                ;;
-       --with-suspend2)
-               USE_SUSPEND2="yes";
+       --without-suspend2)
+               USE_SUSPEND2="no";
                ;;
        --lvmtoolsversion=|--lvmversion=)
                LVMTOOLSVERSION="`echo $1 | awk -F= '{print $2;}'`"
@@ -936,6 +936,10 @@ for n in $BASICMODULES; do
        findmodule "$n"
 done
 
+if is_yes "$USE_SUSPEND2"; then
+       findmodule "-lzf"
+fi
+
 if [ -n "$ifneeded" -a -z "$MODULES" ]; then
        if [ -n "$verbose" ]; then
                echo "No modules are needed -- not building initrd image."
This page took 0.088993 seconds and 4 git commands to generate.