Ignore:
Timestamp:
Aug 7, 2006, 1:15:58 AM (14 years ago)
Author:
Bruno Cornec
Message:
  • Use _defaultdocdir instead of RPM_DOC_DIR for doc built
  • %doc in spec files reviewed
  • Log file for all build scripts
  • Fix a bug for ebuild
  • src file is now name-verion.tar.gz (without TAG)
  • deb pkgs should now be copied on ftp server
  • Fix 2 warnings in mondo
  • Fix a bug introduced for LVM on Debian hopefully
  • Fix a bug on old distros where mktemp needs a template
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/stable/mindi/mindi

    r748 r755  
    14321432        # the former is then a link to the latter, so we test whether
    14331433        # $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
    14351439        # ordinary device. It is just to make sure that we feed the right value
    14361440        # into any of the LVM tools if possible.
    14371441
    14381442        current_lvolume="$current_partition"
    1439         if [ $LVM = "v2" ] && [ "`$LVMCMD lvdisplay $current_partition 2> /dev/null`" ]; then
    1440             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         fi
    1443         #
    1444         # For ReHat lvmdisplay doesn't work on /dev/mapper entries
    1445         #
    14461443        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
    14481450        fi
    14491451        #
Note: See TracChangeset for help on using the changeset viewer.