SVN: geninitrd/trunk/geninitrd
glen
glen at pld-linux.org
Wed May 14 21:03:55 CEST 2008
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
}
More information about the pld-cvs-commit
mailing list