Changeset 755 in MondoRescue for branches/stable/mindi/mindi
- Timestamp:
- Aug 7, 2006, 1:15:58 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/stable/mindi/mindi
r748 r755 1432 1432 # the former is then a link to the latter, so we test whether 1433 1433 # $current_partition is actually such a link or not and set 1434 # $current_lvolume accordingly. Note that $current_lvolume may well be an 1434 # $current_lvolume accordingly. On Debian you may find more than one answer 1435 # so we remove the one corresponding to /dev/.static 1436 # On RedHat even if the device name is different (/dev/mapper/<VG><LV>), the 1437 # principle is the same and we need to find the link to it as well. 1438 # Note that $current_lvolume may well be an 1435 1439 # ordinary device. It is just to make sure that we feed the right value 1436 1440 # into any of the LVM tools if possible. 1437 1441 1438 1442 current_lvolume="$current_partition" 1439 if [ $LVM = "v2" ] && [ "`$LVMCMD lvdisplay $current_partition 2> /dev/null`" ]; then1440 partition_stub="`echo "$current_partition" | sed "s|^/dev/mapper/|/dev/|" | cut -d"-" -f1`"1441 current_lvolume="`find /dev -lname "$current_partition" | grep "^$partition_stub"`"1442 fi1443 #1444 # For ReHat lvmdisplay doesn't work on /dev/mapper entries1445 #1446 1443 if [ $LVM = "v2" ] && [ "`echo $current_partition | grep '/dev/mapper/'`" ]; then 1447 current_lvolume="`find /dev -lname "$current_partition"`" 1444 # .static dir are a Debian specificity 1445 current_lvolume="`find /dev -lname "$current_partition" | grep -v /.static/`" 1446 echo $current_lvolume | grep -q ' ' 1447 if [ $? -eq 0]; then 1448 echo "WARNING: Multiple Logical Volumes found. Report to dev team" >> $LOGFILE 1449 fi 1448 1450 fi 1449 1451 #
Note:
See TracChangeset
for help on using the changeset viewer.