Changeset 3152 in MondoRescue


Ignore:
Timestamp:
Jun 22, 2013, 8:15:23 AM (11 years ago)
Author:
Bruno Cornec
Message:
  • Fix #696 for VGs not having a '-' in thei name (multipath aliases e.g.) (Victor Gattegno)
File:
1 edited

Legend:

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

    r3150 r3152  
    19071907                /* Found the Volume Group. Now find all of the VG's mount points */
    19081908                log_msg(4, "  Found the Volume Group. Now find all of the VG's mount points");
    1909                 mr_asprintf(&command, "mount 2>/dev/null|grep -E \"/dev/mapper/%s-|/dev/%s/\"|awk '{printf(\"%%s \",$3)}END{print \"\"}'", VG, VG);
     1909                mr_asprintf(&command, "mount 2>/dev/null|grep -E \"/dev/mapper/%s|/dev/%s/\"|awk '{printf(\"%%s \",$3)}END{print \"\"}'", VG, VG);
    19101910                log_msg(5, "  Running: %s", command);
    19111911                mr_asprintf(&mount_list, "%s", call_program_and_get_last_line_of_output(command));
Note: See TracChangeset for help on using the changeset viewer.