SVN: geninitrd/trunk/geninitrd
glen
glen at pld-linux.org
Tue Feb 6 18:03:32 CET 2007
Author: glen
Date: Tue Feb 6 18:03:32 2007
New Revision: 8226
Modified:
geninitrd/trunk/geninitrd
Log:
- ignore errors from pvdisplay when it can't access devices (emc for example)
Modified: geninitrd/trunk/geninitrd
==============================================================================
--- geninitrd/trunk/geninitrd (original)
+++ geninitrd/trunk/geninitrd Tue Feb 6 18:03:32 2007
@@ -703,7 +703,7 @@
fi
if [ -z "$PVDEVICES" ] ; then
VGVOLUME=$(/sbin/lvdisplay -c "$node" 2> /dev/null | awk -F":" ' { print $2 } ')
- PVDEVICES=$(/sbin/pvdisplay -c | awk -F":" -v vg="$VGVOLUME" ' BEGIN { devices="" } { if ($2 == vg) { devices = devices " " $1 } } END { print devices } ')
+ PVDEVICES=$(/sbin/pvdisplay -c 2>/dev/null | awk -F":" -v vg="$VGVOLUME" ' BEGIN { devices="" } { if ($2 == vg) { devices = devices " " $1 } } END { print devices } ')
fi
if [ -n "$PVDEVICES" ] ; then
for device in $PVDEVICES; do
More information about the pld-cvs-commit
mailing list