Gentoo Logo
Gentoo Spaceship

Installation:
Gentoo Handbook
Installation Docs

Documentation:
Home
Listing
About Gentoo
Philosophy
Social Contract

Resources:
Bug Tracker
Developer List
Discussion Forums
Gentoo BitTorrents
Gentoo Linux Enhancement Proposals
IRC Channels
Mailing Lists
Mirrors
Name and Logo Guidelines
Online Package Database
Security Announcements
Staffing Needs
Supporting Vendors
View our CVS

Graphics:
Logos and themes
Icons
ScreenShots

Miscellaneous Resources:
Gentoo Linux Store
Gentoo-hosted projects
IBM dW/Intel article archive




List Archive: gentoo-dev
Navigation:
Lists: gentoo-dev: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-dev@g.o
From: "devix@..." <devix@...>
Subject: genkernel support uuid for real_resume
Date: Sat, 04 Oct 2008 22:27:10 +0000
This patch add support uuid for real_resume boot option.

example:

# /boot/grub/menu.lst

timeout 30
default 0

color light-gray/bluetitle  Gentoo
root (hd0,1)
kernel /boot/kernel-genkernel-x86-2.6.25-gentoo-r7 real_root=UUID=d5587595-72aa-48e9-a6ba-43daa8e16db1 real_resume=UUID=5f267a01-971a-4440-99aa-04ac28145db1 vga=794
initrd /boot/initramfs-genkernel-x86-2.6.25-gentoo-r7



--- linuxrc.old	2008-10-04 15:18:40.000000000 +0000
+++ linuxrc	2008-10-04 15:05:32.000000000 +0000
@@ -243,6 +243,34 @@
 	startLUKS
 	if [ "${NORESUME}" != '1' ] && [ -n "${REAL_RESUME}" ]
 	then
+		case "${REAL_RESUME}" in
+			LABEL\=*|UUID\=*)
+
+				RESUME_DEV=""
+				retval=1
+				
+				if [ "${retval}" -ne '0' ]; then
+					RESUME_DEV=`findfs "${REAL_RESUME}" 2>/dev/null`
+					retval=$?
+				fi
+				
+				if [ "$retval" -ne '0' ]; then
+					RESUME_DEV=`busybox findfs "${REAL_RESUME}" 2>/dev/null`
+					retval=$?
+				fi
+				
+				if [ "${retval}" -ne '0' ]; then
+					RESUME_DEV=`blkid -t "${REAL_RESUME}" | cut -d ":" -f 1 2>/dev/null`
+					retval=$?
+				fi
+				
+				if [ "${retval}" -eq '0' ] && [ -n "${RESUME_DEV}" ]; then
+					good_msg "Detected real_resume=${RESUME_DEV}"
+					REAL_RESUME="${RESUME_DEV}"
+				fi
+				;;
+		esac
+
 		swsusp_resume
 #		suspend_resume
 		tuxonice_resume
Replies:
Re: genkernel support uuid for real_resume
-- Andrew Gaffney
Navigation:
Lists: gentoo-dev: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
[RFC] Label profiles with EAPI for compatibility checks
Next by thread:
Re: genkernel support uuid for real_resume
Previous by date:
Re: [gentoo-portage-dev] [RFC] Label profiles with EAPI for compatibility checks
Next by date:
Re: genkernel support uuid for real_resume


Updated Jun 17, 2009

Donate to support our development efforts.

Gentoo Centric Hosting: vr.org

VR Hosted

Tek Alchemy

Tek Alchemy

SevenL.net

SevenL.net

php|architect

php|architect

Copyright 2001-2007 Gentoo Foundation, Inc. Questions, Comments? Email www@gentoo.org.