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.

git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/genkernel/trunk@584 67a159dc-881f-0410-a524-ba9dfbe2cb84
cleanup-cruft
Chris Gianelloni 17 years ago
parent b861813ae6
commit 4faaee5d40

@ -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,

@ -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' ]

Loading…
Cancel
Save