Removing the suspend support that was added for bug #156445 until suspend is added...
authorChris Gianelloni <wolf31o2@gentoo.org>
Thu, 30 Aug 2007 18:27:35 +0000 (18:27 +0000)
committerChris Gianelloni <wolf31o2@gentoo.org>
Thu, 30 Aug 2007 18:27:35 +0000 (18:27 +0000)
git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/genkernel/trunk@531 67a159dc-881f-0410-a524-ba9dfbe2cb84

ChangeLog
gen_cmdline.sh
gen_compile.sh
gen_configkernel.sh
gen_determineargs.sh
gen_initramfs.sh
generic/initrd.scripts
generic/linuxrc
genkernel
genkernel.conf
pkg/genkernel-svn-suspend.patch [new file with mode: 0644]

index 9101e11572b1591aef2b992602e797cbd1f069ba..1b7fd427467e621c75c82fa4a0cb1fbd49a57e1f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,14 @@
 # Copyright 2006-2007 Gentoo Foundation; Distributed under the GPL v2
 # $Header: $
 
+  30 Aug 2007; Chris Gianelloni <wolf31o2@gentoo.org> gen_cmdline.sh,
+  gen_compile.sh, gen_configkernel.sh, gen_determineargs.sh,
+  gen_initramfs.sh, generic/initrd.scripts, generic/linuxrc, genkernel,
+  genkernel.conf, +pkg/genkernel-svn-suspend.patch:
+  Removing the suspend support that was added for bug #156445 until suspend is
+  added to the tree and we can determine the proper way to support it. For
+  more information, see bug #156431.
+
   22 Aug 2007; Chris Gianelloni <wolf31o2@gentoo.org> x86/kernel-config-2.6,
   x86_64/kernel-config-2.6, genkernel:
   Removed CONFIG_PHYSICAL_START from the x86/amd64 kernel configs for bug
index 7a2a0768b2f6f16ec1da02465dcbc101422d4bac..7d75d95fb61014960349164be488f41f570018c0 100755 (executable)
@@ -79,7 +79,7 @@ longusage() {
   echo "       --lvm2                  Include LVM2 support"
 #  echo "      --unionfs               Include UNIONFS support"
   echo "       --dmraid                Include DMRAID support"
-  echo "       --suspend               Include userspace suspend/resume (uswsusp) support"
+#  echo "      --suspend               Include userspace suspend/resume (uswsusp) support"
   echo "       --slowusb               Enables extra pauses for slow USB CD boots"
   echo "       --bootloader=grub       Add new kernel to GRUB configuration"
   echo "       --linuxrc=<file>        Specifies a user created linuxrc"
@@ -231,17 +231,17 @@ parse_cmdline() {
                      CMD_LVM2=1
                      print_info 2 "CMD_LVM2: $CMD_LVM2"
              ;;
-             --suspend)
-                     if [ ! -e /etc/suspend.conf ]
-                     then
-                       echo 'Error: --suspend requires sys-power/suspend to be installed'
-                       echo '       on the host system; try "emerge sys-power/suspend".'
-                       echo '       Once installed, configure the resume settings in /etc/suspend.conf'
-                       exit 1
-                     fi
-                     CMD_SUSPEND=1
-                     print_info 2 "CMD_SUSPEND: $CMD_SUSPEND"
-             ;;
+#            --suspend)
+#                    if [ ! -e /etc/suspend.conf ]
+#                    then
+#                      echo 'Error: --suspend requires sys-power/suspend to be installed'
+#                      echo '       on the host system; try "emerge sys-power/suspend".'
+#                      echo '       Once installed, configure the resume settings in /etc/suspend.conf'
+#                      exit 1
+#                    fi
+#                    CMD_SUSPEND=1
+#                    print_info 2 "CMD_SUSPEND: $CMD_SUSPEND"
+#            ;;
              --no-busybox)
                      CMD_NO_BUSYBOX=1
                      print_info 2 "CMD_NO_BUSYBOX: $CMD_NO_BUSYBOX"
index 665e2d12186873a138b659d5c2cac865ecef610a..0e3b3190267de1c076dfe7ea7116119e27c20f9b 100644 (file)
@@ -560,38 +560,38 @@ compile_dmraid() {
        fi
 }
 
-compile_suspend() {
-       [ -f "${SUSPEND_BINCACHE}" ] && return
-       [ -f "${SUSPEND_SRCTAR}" ] ||
-               gen_die "Could not find SUSPEND source tarball: ${SUSPEND_SRCTAR}! Please place it there, or place another version, changing /etc/genkernel.conf as necessary!"
-       cd ${TEMP}
-       rm -rf ${SUSPEND_DIR} > /dev/null
-       /bin/tar -zxpf ${SUSPEND_SRCTAR} ||
-               gen_die 'Could not extract SUSPEND source tarball!'
-       [ -d "${SUSPEND_DIR}" ] ||
-               gen_die "SUSPEND directory ${DMRAID_DIR} is invalid!"
-
-       cd "${SUSPEND_DIR}"
-       if [ -f "${GK_SHARE}/pkg/suspend-0.5-Makefile.patch" ]
-       then
-               patch -p1 -i \
-                       ${GK_SHARE}/pkg/suspend-0.5-Makefile.patch \
-                       || gen_die "Failed patching suspend"
-       fi
-
-       print_info 1 'suspend: >> Compiling...'
-       compile_generic '' utils CC_FLAGS= LD_FLAGS=
-
-       print_info 1 '         >> Copying to bincache...'
-       mkdir -p "${TEMP}/bincache/sbin"
-       cp -f resume "${TEMP}/bincache/sbin" ||
-               gen_die 'Could not copy resume binary'
-       cd "${TEMP}/bincache"
-       /bin/tar -cjf "${SUSPEND_BINCACHE}" * ||
-               gen_die 'Could not create suspend binary cache'
-       cd "${TEMP}"
-       rm -rf bincache suspend-0.5
-}
+#compile_suspend() {
+#      [ -f "${SUSPEND_BINCACHE}" ] && return
+#      [ -f "${SUSPEND_SRCTAR}" ] ||
+#              gen_die "Could not find SUSPEND source tarball: ${SUSPEND_SRCTAR}! Please place it there, or place another version, changing /etc/genkernel.conf as necessary!"
+#      cd ${TEMP}
+#      rm -rf ${SUSPEND_DIR} > /dev/null
+#      /bin/tar -zxpf ${SUSPEND_SRCTAR} ||
+#              gen_die 'Could not extract SUSPEND source tarball!'
+#      [ -d "${SUSPEND_DIR}" ] ||
+#              gen_die "SUSPEND directory ${DMRAID_DIR} is invalid!"
+
+#      cd "${SUSPEND_DIR}"
+#      if [ -f "${GK_SHARE}/pkg/suspend-0.5-Makefile.patch" ]
+#      then
+#              patch -p1 -i \
+#                      ${GK_SHARE}/pkg/suspend-0.5-Makefile.patch \
+#                      || gen_die "Failed patching suspend"
+#      fi
+
+#      print_info 1 'suspend: >> Compiling...'
+#      compile_generic '' utils CC_FLAGS= LD_FLAGS=
+
+#      print_info 1 '         >> Copying to bincache...'
+#      mkdir -p "${TEMP}/bincache/sbin"
+#      cp -f resume "${TEMP}/bincache/sbin" ||
+#              gen_die 'Could not copy resume binary'
+#      cd "${TEMP}/bincache"
+#      /bin/tar -cjf "${SUSPEND_BINCACHE}" * ||
+#              gen_die 'Could not create suspend binary cache'
+#      cd "${TEMP}"
+#      rm -rf bincache suspend-0.5
+#}
 
 compile_devfsd() {
        # I've disabled dietlibc support for the time being since the
index 44ed63054f5b1c0bcd23b162401f6ce3e4c4cd02..b984b8e748f77f759d6c4885dca52d54fd5070ef 100644 (file)
@@ -122,9 +122,9 @@ config_kernel() {
        fi
 
        # This check isn't complete: SOFTWARE_SUSPEND has extra deps on some systems such as CPU hotplug
-       if isTrue ${CMD_SUSPEND}
-       then
-               sed -i ${KERNEL_DIR}/.config -e 's/#\? \?CONFIG_SOFTWARE_SUSPEND is.*/CONFIG_SOFTWARE_SUSPEND=y/g'
-       fi
+#      if isTrue ${CMD_SUSPEND}
+#      then
+#              sed -i ${KERNEL_DIR}/.config -e 's/#\? \?CONFIG_SOFTWARE_SUSPEND is.*/CONFIG_SOFTWARE_SUSPEND=y/g'
+#      fi
 
 }
index 0938737721bcc9ef6464488be52743b4f099b8fb..963e07727853a6418240183636446235b9a78b50 100644 (file)
@@ -209,7 +209,7 @@ determine_real_args() {
        UNIONFS_BINCACHE=`cache_replace "${UNIONFS_BINCACHE}"`
        UNIONFS_MODULES_BINCACHE=`cache_replace "${UNIONFS_MODULES_BINCACHE}"`
        BLKID_BINCACHE=`cache_replace "${BLKID_BINCACHE}"`
-       SUSPEND_BINCACHE=`cache_replace "${SUSPEND_BINCACHE}"`
+#      SUSPEND_BINCACHE=`cache_replace "${SUSPEND_BINCACHE}"`
   
        DEFAULT_KERNEL_CONFIG=`arch_replace "${DEFAULT_KERNEL_CONFIG}"`
        BUSYBOX_CONFIG=`arch_replace "${BUSYBOX_CONFIG}"`
@@ -226,7 +226,7 @@ determine_real_args() {
        UNIONFS_BINCACHE=`arch_replace "${UNIONFS_BINCACHE}"`
        UNIONFS_MODULES_BINCACHE=`arch_replace "${UNIONFS_MODULES_BINCACHE}"`
        BLKID_BINCACHE=`arch_replace "${BLKID_BINCACHE}"`
-       SUSPEND_BINCACHE=`arch_replace "${SUSPEND_BINCACHE}"`
+#      SUSPEND_BINCACHE=`arch_replace "${SUSPEND_BINCACHE}"`
        
        if [ "${CMD_BOOTSPLASH}" != '' ]
        then
@@ -433,12 +433,12 @@ determine_real_args() {
                LVM2=0
        fi
 
-       if isTrue "${CMD_SUSPEND}"
-       then
-               SUSPEND=1
-       else
-               SUSPEND=0
-       fi
+#      if isTrue "${CMD_SUSPEND}"
+#      then
+#              SUSPEND=1
+#      else
+#              SUSPEND=0
+#      fi
        
        if isTrue "${CMD_EVMS2}"
        then
index 11376dafb446d9f36dfce083b06e5081cc2f172a..3cff7cc1dae0ba26470c367d032b4e2836993495 100644 (file)
@@ -148,23 +148,23 @@ append_unionfs_tools(){
        rm -r "${TEMP}/initramfs-unionfs-tools-temp/"
 }
 
-append_suspend(){
-       if [ -d "${TEMP}/initramfs-suspend-temp" ];
-       then
-               rm -r "${TEMP}/initramfs-suspend-temp/"
-       fi
-       print_info 1 'SUSPEND: Adding support (compiling binaries)...'
-       compile_suspend
-       mkdir -p "${TEMP}/initramfs-suspend-temp/"
-       /bin/tar -jxpf "${SUSPEND_BINCACHE}" -C "${TEMP}/initramfs-suspend-temp" ||
-               gen_die "Could not extract suspend binary cache!"
-       mkdir -p "${TEMP}/initramfs-suspend-temp/etc"
-       cp -f /etc/suspend.conf "${TEMP}/initramfs-suspend-temp/etc" ||
-               gen_die 'Could not copy /etc/suspend.conf'
-       cd "${TEMP}/initramfs-suspend-temp/"
-       find . -print | cpio ${CPIO_ARGS} --append -F "${CPIO}"
-       rm -r "${TEMP}/initramfs-suspend-temp/"
-}
+#append_suspend(){
+#      if [ -d "${TEMP}/initramfs-suspend-temp" ];
+#      then
+#              rm -r "${TEMP}/initramfs-suspend-temp/"
+#      fi
+#      print_info 1 'SUSPEND: Adding support (compiling binaries)...'
+#      compile_suspend
+#      mkdir -p "${TEMP}/initramfs-suspend-temp/"
+#      /bin/tar -jxpf "${SUSPEND_BINCACHE}" -C "${TEMP}/initramfs-suspend-temp" ||
+#              gen_die "Could not extract suspend binary cache!"
+#      mkdir -p "${TEMP}/initramfs-suspend-temp/etc"
+#      cp -f /etc/suspend.conf "${TEMP}/initramfs-suspend-temp/etc" ||
+#              gen_die 'Could not copy /etc/suspend.conf'
+#      cd "${TEMP}/initramfs-suspend-temp/"
+#      find . -print | cpio ${CPIO_ARGS} --append -F "${CPIO}"
+#      rm -r "${TEMP}/initramfs-suspend-temp/"
+#}
 
 append_dmraid(){
        if [ -d "${TEMP}/initramfs-dmraid-temp" ]
@@ -478,7 +478,7 @@ create_initramfs() {
 #      append_data 'udev' "${UDEV}"
        append_data 'unionfs_modules' "${UNIONFS}"
        append_data 'unionfs_tools' "${UNIONFS}"
-       append_data 'suspend' "${SUSPEND}"
+#      append_data 'suspend' "${SUSPEND}"
        append_data 'lvm2' "${LVM2}"
        append_data 'dmraid' "${DMRAID}"
        append_data 'evms2' "${EVMS2}"
index 2a03d81e9364b75e1a4f0b5ddbf13b0d31bcc99e..dda77c8da45f4387955624302b1a05b9c3150a66 100644 (file)
@@ -847,17 +847,17 @@ setup_unionfs() {
        fi
 }
 
-suspend_resume() {
-       [ -x /sbin/resume ] || return 0
-       /sbin/resume
-       local ret=$?
+#suspend_resume() {
+#      [ -x /sbin/resume ] || return 0
+#      /sbin/resume
+#      local ret=$?
 
-       if [ "${ret}" -eq 0 ]; then
-               exit 0
-       fi
+#      if [ "${ret}" -eq 0 ]; then
+#              exit 0
+#      fi
 
-       return 0
-}
+#      return 0
+#}
 
 suspend2_resume() {
        if [ -d /proc/suspend2 ] || [ -d /sys/power/suspend2 ]; then
index 269a27efeecd2bd123e039e9ebcb8abb91081706..7d017e84fb9f2b8e8efc5ca34da8d82f4d8f3de4 100644 (file)
@@ -256,7 +256,7 @@ fi
 # Run debug shell if requested
 rundebugshell
 
-suspend_resume
+#suspend_resume
 suspend2_resume
 
 if [ "${CDROOT}" -eq '1' ]
index 6fb88d0e515796b400ce1ccc01ce4e82faa426c5..bfacd6406b8274fc0b5256e2b9520accf4d974c2 100755 (executable)
--- a/genkernel
+++ b/genkernel
@@ -2,7 +2,7 @@
 # Genkernel v3
 
 PATH="/bin:/usr/bin:/sbin:/usr/sbin"
-GK_V='3.4.9_pre1'
+GK_V='3.4.9_pre2'
 
 # Set the default for TMPDIR.  May be modified by genkernel.conf or the
 # --tempdir command line option.
index 2c01b55b59c043e7994a24cfed55736d74da70eb..b6ea102f65c20fe6e77dceb356b4e29e3f64731b 100755 (executable)
@@ -132,8 +132,8 @@ E2FSPROGS_DIR="e2fsprogs-${E2FSPROGS_VER}"
 E2FSPROGS_SRCTAR="${GK_SHARE}/pkg/e2fsprogs-${E2FSPROGS_VER}.tar.gz"
 BLKID_BINCACHE="%%CACHE%%/blkid-${E2FSPROGS_VER}-%%ARCH%%.bz2"
 
-SUSPEND_VER="VERSION_SUSPEND"
-SUSPEND_DIR="suspend-${SUSPEND_VER}"
-SUSPEND_SRCTAR="${GK_SHARE}/pkg/suspend-${SUSPEND_VER}.tar.gz"
-SUSPEND_BINCACHE="%%CACHE%%/suspend-${SUSPEND_VER}-%%ARCH%%.tar.bz2"
+#SUSPEND_VER="VERSION_SUSPEND"
+#SUSPEND_DIR="suspend-${SUSPEND_VER}"
+#SUSPEND_SRCTAR="${GK_SHARE}/pkg/suspend-${SUSPEND_VER}.tar.gz"
+#SUSPEND_BINCACHE="%%CACHE%%/suspend-${SUSPEND_VER}-%%ARCH%%.tar.bz2"
 
diff --git a/pkg/genkernel-svn-suspend.patch b/pkg/genkernel-svn-suspend.patch
new file mode 100644 (file)
index 0000000..c057c0d
--- /dev/null
@@ -0,0 +1,288 @@
+Index: gen_compile.sh
+===================================================================
+--- gen_compile.sh     (revision 528)
++++ gen_compile.sh     (working copy)
+@@ -560,38 +560,38 @@
+       fi
+ }
+-compile_suspend() {
+-      [ -f "${SUSPEND_BINCACHE}" ] && return
+-      [ -f "${SUSPEND_SRCTAR}" ] ||
+-              gen_die "Could not find SUSPEND source tarball: ${SUSPEND_SRCTAR}! Please place it there, or place another version, changing /etc/genkernel.conf as necessary!"
+-      cd ${TEMP}
+-      rm -rf ${SUSPEND_DIR} > /dev/null
+-      /bin/tar -zxpf ${SUSPEND_SRCTAR} ||
+-              gen_die 'Could not extract SUSPEND source tarball!'
+-      [ -d "${SUSPEND_DIR}" ] ||
+-              gen_die "SUSPEND directory ${DMRAID_DIR} is invalid!"
++#compile_suspend() {
++#     [ -f "${SUSPEND_BINCACHE}" ] && return
++#     [ -f "${SUSPEND_SRCTAR}" ] ||
++#             gen_die "Could not find SUSPEND source tarball: ${SUSPEND_SRCTAR}! Please place it there, or place another version, changing /etc/genkernel.conf as necessary!"
++#     cd ${TEMP}
++#     rm -rf ${SUSPEND_DIR} > /dev/null
++#     /bin/tar -zxpf ${SUSPEND_SRCTAR} ||
++#             gen_die 'Could not extract SUSPEND source tarball!'
++#     [ -d "${SUSPEND_DIR}" ] ||
++#             gen_die "SUSPEND directory ${DMRAID_DIR} is invalid!"
+-      cd "${SUSPEND_DIR}"
+-      if [ -f "${GK_SHARE}/pkg/suspend-0.5-Makefile.patch" ]
+-      then
+-              patch -p1 -i \
+-                      ${GK_SHARE}/pkg/suspend-0.5-Makefile.patch \
+-                      || gen_die "Failed patching suspend"
+-      fi
++#     cd "${SUSPEND_DIR}"
++#     if [ -f "${GK_SHARE}/pkg/suspend-0.5-Makefile.patch" ]
++#     then
++#             patch -p1 -i \
++#                     ${GK_SHARE}/pkg/suspend-0.5-Makefile.patch \
++#                     || gen_die "Failed patching suspend"
++#     fi
+-      print_info 1 'suspend: >> Compiling...'
+-      compile_generic '' utils CC_FLAGS= LD_FLAGS=
++#     print_info 1 'suspend: >> Compiling...'
++#     compile_generic '' utils CC_FLAGS= LD_FLAGS=
+-      print_info 1 '         >> Copying to bincache...'
+-      mkdir -p "${TEMP}/bincache/sbin"
+-      cp -f resume "${TEMP}/bincache/sbin" ||
+-              gen_die 'Could not copy resume binary'
+-      cd "${TEMP}/bincache"
+-      /bin/tar -cjf "${SUSPEND_BINCACHE}" * ||
+-              gen_die 'Could not create suspend binary cache'
+-      cd "${TEMP}"
+-      rm -rf bincache suspend-0.5
+-}
++#     print_info 1 '         >> Copying to bincache...'
++#     mkdir -p "${TEMP}/bincache/sbin"
++#     cp -f resume "${TEMP}/bincache/sbin" ||
++#             gen_die 'Could not copy resume binary'
++#     cd "${TEMP}/bincache"
++#     /bin/tar -cjf "${SUSPEND_BINCACHE}" * ||
++#             gen_die 'Could not create suspend binary cache'
++#     cd "${TEMP}"
++#     rm -rf bincache suspend-0.5
++#}
+ compile_devfsd() {
+       # I've disabled dietlibc support for the time being since the
+Index: gen_configkernel.sh
+===================================================================
+--- gen_configkernel.sh        (revision 528)
++++ gen_configkernel.sh        (working copy)
+@@ -122,9 +122,9 @@
+       fi
+       # This check isn't complete: SOFTWARE_SUSPEND has extra deps on some systems such as CPU hotplug
+-      if isTrue ${CMD_SUSPEND}
+-      then
+-              sed -i ${KERNEL_DIR}/.config -e 's/#\? \?CONFIG_SOFTWARE_SUSPEND is.*/CONFIG_SOFTWARE_SUSPEND=y/g'
+-      fi
++#     if isTrue ${CMD_SUSPEND}
++#     then
++#             sed -i ${KERNEL_DIR}/.config -e 's/#\? \?CONFIG_SOFTWARE_SUSPEND is.*/CONFIG_SOFTWARE_SUSPEND=y/g'
++#     fi
+ }
+Index: gen_cmdline.sh
+===================================================================
+--- gen_cmdline.sh     (revision 528)
++++ gen_cmdline.sh     (working copy)
+@@ -79,7 +79,7 @@
+   echo "      --lvm2                  Include LVM2 support"
+ #  echo "     --unionfs               Include UNIONFS support"
+   echo "      --dmraid                Include DMRAID support"
+-  echo "      --suspend               Include userspace suspend/resume (uswsusp) support"
++#  echo "     --suspend               Include userspace suspend/resume (uswsusp) support"
+   echo "      --slowusb               Enables extra pauses for slow USB CD boots"
+   echo "      --bootloader=grub       Add new kernel to GRUB configuration"
+   echo "      --linuxrc=<file>        Specifies a user created linuxrc"
+@@ -231,17 +231,17 @@
+                     CMD_LVM2=1
+                     print_info 2 "CMD_LVM2: $CMD_LVM2"
+             ;;
+-            --suspend)
+-                    if [ ! -e /etc/suspend.conf ]
+-                    then
+-                      echo 'Error: --suspend requires sys-power/suspend to be installed'
+-                      echo '       on the host system; try "emerge sys-power/suspend".'
+-                      echo '       Once installed, configure the resume settings in /etc/suspend.conf'
+-                      exit 1
+-                    fi
+-                    CMD_SUSPEND=1
+-                    print_info 2 "CMD_SUSPEND: $CMD_SUSPEND"
+-            ;;
++#           --suspend)
++#                   if [ ! -e /etc/suspend.conf ]
++#                   then
++#                     echo 'Error: --suspend requires sys-power/suspend to be installed'
++#                     echo '       on the host system; try "emerge sys-power/suspend".'
++#                     echo '       Once installed, configure the resume settings in /etc/suspend.conf'
++#                     exit 1
++#                   fi
++#                   CMD_SUSPEND=1
++#                   print_info 2 "CMD_SUSPEND: $CMD_SUSPEND"
++#           ;;
+             --no-busybox)
+                     CMD_NO_BUSYBOX=1
+                     print_info 2 "CMD_NO_BUSYBOX: $CMD_NO_BUSYBOX"
+Index: gen_determineargs.sh
+===================================================================
+--- gen_determineargs.sh       (revision 528)
++++ gen_determineargs.sh       (working copy)
+@@ -209,7 +209,7 @@
+       UNIONFS_BINCACHE=`cache_replace "${UNIONFS_BINCACHE}"`
+       UNIONFS_MODULES_BINCACHE=`cache_replace "${UNIONFS_MODULES_BINCACHE}"`
+       BLKID_BINCACHE=`cache_replace "${BLKID_BINCACHE}"`
+-      SUSPEND_BINCACHE=`cache_replace "${SUSPEND_BINCACHE}"`
++#     SUSPEND_BINCACHE=`cache_replace "${SUSPEND_BINCACHE}"`
+   
+       DEFAULT_KERNEL_CONFIG=`arch_replace "${DEFAULT_KERNEL_CONFIG}"`
+       BUSYBOX_CONFIG=`arch_replace "${BUSYBOX_CONFIG}"`
+@@ -226,7 +226,7 @@
+       UNIONFS_BINCACHE=`arch_replace "${UNIONFS_BINCACHE}"`
+       UNIONFS_MODULES_BINCACHE=`arch_replace "${UNIONFS_MODULES_BINCACHE}"`
+       BLKID_BINCACHE=`arch_replace "${BLKID_BINCACHE}"`
+-      SUSPEND_BINCACHE=`arch_replace "${SUSPEND_BINCACHE}"`
++#     SUSPEND_BINCACHE=`arch_replace "${SUSPEND_BINCACHE}"`
+       
+       if [ "${CMD_BOOTSPLASH}" != '' ]
+       then
+@@ -433,12 +433,12 @@
+               LVM2=0
+       fi
+-      if isTrue "${CMD_SUSPEND}"
+-      then
+-              SUSPEND=1
+-      else
+-              SUSPEND=0
+-      fi
++#     if isTrue "${CMD_SUSPEND}"
++#     then
++#             SUSPEND=1
++#     else
++#             SUSPEND=0
++#     fi
+       
+       if isTrue "${CMD_EVMS2}"
+       then
+Index: genkernel.conf
+===================================================================
+--- genkernel.conf     (revision 528)
++++ genkernel.conf     (working copy)
+@@ -132,8 +132,8 @@
+ E2FSPROGS_SRCTAR="${GK_SHARE}/pkg/e2fsprogs-${E2FSPROGS_VER}.tar.gz"
+ BLKID_BINCACHE="%%CACHE%%/blkid-${E2FSPROGS_VER}-%%ARCH%%.bz2"
+-SUSPEND_VER="VERSION_SUSPEND"
+-SUSPEND_DIR="suspend-${SUSPEND_VER}"
+-SUSPEND_SRCTAR="${GK_SHARE}/pkg/suspend-${SUSPEND_VER}.tar.gz"
+-SUSPEND_BINCACHE="%%CACHE%%/suspend-${SUSPEND_VER}-%%ARCH%%.tar.bz2"
++#SUSPEND_VER="VERSION_SUSPEND"
++#SUSPEND_DIR="suspend-${SUSPEND_VER}"
++#SUSPEND_SRCTAR="${GK_SHARE}/pkg/suspend-${SUSPEND_VER}.tar.gz"
++#SUSPEND_BINCACHE="%%CACHE%%/suspend-${SUSPEND_VER}-%%ARCH%%.tar.bz2"
+Index: gen_initramfs.sh
+===================================================================
+--- gen_initramfs.sh   (revision 528)
++++ gen_initramfs.sh   (working copy)
+@@ -148,23 +148,23 @@
+       rm -r "${TEMP}/initramfs-unionfs-tools-temp/"
+ }
+-append_suspend(){
+-      if [ -d "${TEMP}/initramfs-suspend-temp" ];
+-      then
+-              rm -r "${TEMP}/initramfs-suspend-temp/"
+-      fi
+-      print_info 1 'SUSPEND: Adding support (compiling binaries)...'
+-      compile_suspend
+-      mkdir -p "${TEMP}/initramfs-suspend-temp/"
+-      /bin/tar -jxpf "${SUSPEND_BINCACHE}" -C "${TEMP}/initramfs-suspend-temp" ||
+-              gen_die "Could not extract suspend binary cache!"
+-      mkdir -p "${TEMP}/initramfs-suspend-temp/etc"
+-      cp -f /etc/suspend.conf "${TEMP}/initramfs-suspend-temp/etc" ||
+-              gen_die 'Could not copy /etc/suspend.conf'
+-      cd "${TEMP}/initramfs-suspend-temp/"
+-      find . -print | cpio ${CPIO_ARGS} --append -F "${CPIO}"
+-      rm -r "${TEMP}/initramfs-suspend-temp/"
+-}
++#append_suspend(){
++#     if [ -d "${TEMP}/initramfs-suspend-temp" ];
++#     then
++#             rm -r "${TEMP}/initramfs-suspend-temp/"
++#     fi
++#     print_info 1 'SUSPEND: Adding support (compiling binaries)...'
++#     compile_suspend
++#     mkdir -p "${TEMP}/initramfs-suspend-temp/"
++#     /bin/tar -jxpf "${SUSPEND_BINCACHE}" -C "${TEMP}/initramfs-suspend-temp" ||
++#             gen_die "Could not extract suspend binary cache!"
++#     mkdir -p "${TEMP}/initramfs-suspend-temp/etc"
++#     cp -f /etc/suspend.conf "${TEMP}/initramfs-suspend-temp/etc" ||
++#             gen_die 'Could not copy /etc/suspend.conf'
++#     cd "${TEMP}/initramfs-suspend-temp/"
++#     find . -print | cpio ${CPIO_ARGS} --append -F "${CPIO}"
++#     rm -r "${TEMP}/initramfs-suspend-temp/"
++#}
+ append_dmraid(){
+       if [ -d "${TEMP}/initramfs-dmraid-temp" ]
+@@ -478,7 +478,7 @@
+ #     append_data 'udev' "${UDEV}"
+       append_data 'unionfs_modules' "${UNIONFS}"
+       append_data 'unionfs_tools' "${UNIONFS}"
+-      append_data 'suspend' "${SUSPEND}"
++#     append_data 'suspend' "${SUSPEND}"
+       append_data 'lvm2' "${LVM2}"
+       append_data 'dmraid' "${DMRAID}"
+       append_data 'evms2' "${EVMS2}"
+Index: generic/initrd.scripts
+===================================================================
+--- generic/initrd.scripts     (revision 528)
++++ generic/initrd.scripts     (working copy)
+@@ -847,17 +847,17 @@
+       fi
+ }
+-suspend_resume() {
+-      [ -x /sbin/resume ] || return 0
+-      /sbin/resume
+-      local ret=$?
++#suspend_resume() {
++#     [ -x /sbin/resume ] || return 0
++#     /sbin/resume
++#     local ret=$?
+-      if [ "${ret}" -eq 0 ]; then
+-              exit 0
+-      fi
++#     if [ "${ret}" -eq 0 ]; then
++#             exit 0
++#     fi
+-      return 0
+-}
++#     return 0
++#}
+ suspend2_resume() {
+       if [ -d /proc/suspend2 ] || [ -d /sys/power/suspend2 ]; then
+Index: generic/linuxrc
+===================================================================
+--- generic/linuxrc    (revision 528)
++++ generic/linuxrc    (working copy)
+@@ -256,7 +256,7 @@
+ # Run debug shell if requested
+ rundebugshell
+-suspend_resume
++#suspend_resume
+ suspend2_resume
+ if [ "${CDROOT}" -eq '1' ]