Author: glen
Date: Wed May 14 21:03:55 2008
New Revision: 9754

Modified:
   geninitrd/trunk/geninitrd
Log:
- safer code for grabbing vg for resume

Modified: geninitrd/trunk/geninitrd
==============================================================================
--- geninitrd/trunk/geninitrd   (original)
+++ geninitrd/trunk/geninitrd   Wed May 14 21:03:55 2008
@@ -1006,11 +1006,14 @@
                die "/usr/${_lib}/suspend/resume is missing!"
        fi
        resume_dev="$(awk '/^resume device =/ { print $4 } ' /etc/suspend.conf)"
+
+       local vgvolumes=$VGVOLUMES
        find_modules_for_devpath $resume_dev
 
-       if [ "$VGVOLUMES" ]; then
+       if [ "$VGVOLUMES" != "$vgvolumes" ]; then
+               # save our VG to be able to differenciate between rootfs VG
                SUSPENDVG=$VGVOLUMES
-               VGVOLUMES=
+               VGVOLUMES=$vgvolumes
                debug "suspend device is on LVM"
        fi
 }
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to