Moving the code to start resume operations so it doesn't run when booting from CD...
authorChris Gianelloni <wolf31o2@gentoo.org>
Sat, 2 Feb 2008 18:07:46 +0000 (18:07 +0000)
committerChris Gianelloni <wolf31o2@gentoo.org>
Sat, 2 Feb 2008 18:07:46 +0000 (18:07 +0000)
git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/genkernel/trunk@584 67a159dc-881f-0410-a524-ba9dfbe2cb84

ChangeLog
generic/linuxrc

index c469656092362a14cdcef66a5e3f0ea5684c5fc6..12671c45c4f3f931c9e45bd19a7c605100b554e7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,11 @@
 # Copyright 2006-2008 Gentoo Foundation; Distributed under the GPL v2
 # $Header: $
 
+  02 Feb 2008; Chris Gianelloni <wolf31o2@gentoo.org> generic/linuxrc:
+  Moving the code to start resume operations so it doesn't run when booting
+  from CD. We also don't execute the code if there's no real_resume set on the
+  command line, since it will fail, anyway, without it.
+
   02 Feb 2008; Andrew Gaffney <agaffney@gentoo.org> alpha/modules_load,
   ia64/modules_load, ppc/modules_load, ppc64/modules_load, um/modules_load,
   x86/modules_load, x86_64/modules_load, xen0/modules_load,
index 888f6bd3308e4fe7e7514e875291bc7a788b1a4d..381c6b5bbe4b2db9365c36fd9ff3583448459960 100644 (file)
@@ -262,6 +262,13 @@ startVolumes
 if [ "${CDROOT}" != 1 ]
 then
        startLUKS
+       if [ "${NORESUME}" != '1' ] && [ -n "${REAL_RESUME}" ]
+       then
+               swsusp_resume
+#              suspend_resume
+#              suspend2_resume
+               tuxonice_resume
+       fi
 fi
 
 # Set up unionfs
@@ -278,14 +285,6 @@ fi
 # Run debug shell if requested
 rundebugshell
 
-if [ "${NORESUME}" != '1' ]
-then
-       swsusp_resume
-#      suspend_resume
-#      suspend2_resume
-       tuxonice_resume
-fi
-
 if [ "${CDROOT}" = '1' ]
 then
        if [ ! "${USE_UNIONFS_NORMAL}" = '1' ]