Changeset 3052


Ignore:
Timestamp:
Oct 23, 2012, 12:40:51 PM (7 years ago)
Author:
bruno
Message:
  • Fix #650 as pvdisplay output format changed in SLES 11 (returns a dm not the mapper) and the new call should be sufficient to cover all cases. (Victor Gattegno)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.0/mondo/src/common/libmondo-devices.c

    r3015 r3052  
    18931893        log_msg(4, "  It's not mounted. Checking to see if it's LVM...");
    18941894        /* Check for LVM */
    1895         mr_asprintf(&command, "pvdisplay -c %s | grep '%s:' 2> /dev/null", partitions[i], partitions[i]);
     1895        mr_asprintf(&command, "pvdisplay -c %s 2> /dev/null", partitions[i]);
    18961896        log_msg(5, "  Running: %s", command);
    18971897        mr_asprintf(&tmp, "%s", call_program_and_get_last_line_of_output(command));
Note: See TracChangeset for help on using the changeset viewer.