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.0 +
+++ linuxrc 2008-10-04 15:05:32.0 +
@@ -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