Changeset 744 in MondoRescue for branches/stable/mindi/mindi


Ignore:
Timestamp:
Aug 5, 2006, 12:35:09 AM (18 years ago)
Author:
Bruno Cornec
Message:

With that version mindi --makemountlist works for RHEL4 + LVMv2 + LABEL

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/stable/mindi/mindi

    r742 r744  
    13391339    done
    13401340    [ "$IMAGE_DEVS" != "" ] && all_partitions="`echo "$all_partitions $IMAGE_DEVS" | tr ' ' '\n' | sort -u | tr '\n ' ' '`"
    1341     printf "        %-15s %-15s %-15s %-15s\n" DEVICE MOUNTPOINT FORMAT "SIZE (MB)"
     1341    printf "        %-15s %-15s %-15s %-15s %-15s\n" DEVICE MOUNTPOINT FORMAT "SIZE (MB)" LABEL
    13421342    useless_dev="/dev/floppy /dev/fd0h1440 /dev/fd0H1440 /dev/cdrom /dev/cdrom/cdrom /dev/cdrom/cdrom1 /dev/cdrom/cdrom2 /dev/cdrom0 /dev/cdrom1 /dev/cdrom2 /dev/cdrom3 /dev/cdrw /dev/scd /dev/ram :/ /dev/sr0 /dev/sr1 /dev/cdrom1"
    13431343    for c_p in $all_partitions ; do
     
    14211421
    14221422        current_lvolume="$current_partition"
    1423         if [ $LVM = "v2" ] && [ -z "`$LVMCMD lvdisplay $current_partition 2> /dev/null`" ]; then
     1423        if [ $LVM = "v2" ] && [ "`$LVMCMD pvdisplay $current_partition 2> /dev/null`" ]; then
    14241424            partition_stub="`echo "$current_partition" | sed "s|^/dev/mapper/|/dev/|" | cut -d"-" -f1`"
    14251425            current_lvolume="`find /dev -lname "$current_partition" | grep "^$partition_stub"`"
     
    14271427        # End of LVM device style variation code (other than $current_lvolume).
    14281428
    1429         if [ $LVM != "false" ] && [ "`$LVMCMD lvdisplay $current_lvolume 2> /dev/null`" ]; then
     1429        if [ $LVM != "false" ] && [ "`$LVMCMD pvdisplay $current_lvolume 2> /dev/null`" ]; then
    14301430            partition_size="lvm"
    14311431        else
Note: See TracChangeset for help on using the changeset viewer.