Changeset 197 in MondoRescue for trunk/mondo/mondo/common/libmondo-devices.c


Ignore:
Timestamp:
Dec 14, 2005, 12:12:15 AM (18 years ago)
Author:
bcornec
Message:

merge -r193:196 $SVN_M/branches/2.05

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/mondo/mondo/common/libmondo-devices.c

    r171 r197  
    22642264    assert(which_device != NULL);
    22652265    asprintf(&list_drives_cmd,
    2266             // "parted2fdisk
    2267             "fdisk -l 2>/dev/null | grep \"/dev/.*:\" | tr -s ':' ' ' | tr -s ' ' '\n' | grep /dev/; echo %s",
     2266            "parted2fdisk -l 2>/dev/null | grep \"/dev/.*:\" | tr -s ':' ' ' | tr -s ' ' '\n' | grep /dev/; echo %s",
    22682267            where_is_root_mounted());
    22692268    log_it("list_drives_cmd = %s", list_drives_cmd);
     
    24192418
    24202419    log_msg(0, "Looking for partition table format type");
    2421 // BERLIOS: Do that temporarily: we need to put back parted2fdisk everywhere
    2422 #ifdef __IA64__
    2423     struct stat buf;
    2424 
    2425     asprintf(&fdisk, "/usr/local/bin/fdisk");
    2426     if (stat(fdisk, &buf) != 0) {
    2427         paranoid_free(fdisk);
    2428 #endif
    2429         asprintf(&fdisk, "/sbin/fdisk");
    2430 #ifdef __IA64__
    2431     }
    2432 #endif
     2420    asprintf(&fdisk, "/sbin/parted2fdisk");
    24332421    log_msg(1, "Using %s", fdisk);
    24342422    asprintf(&command, "%s -l %s | grep 'EFI GPT'", fdisk, drive);
Note: See TracChangeset for help on using the changeset viewer.