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

Usage of parted2fdisk instead of fdisk everywhere.
on ia64 this is mandatory, and simplifies the infrastructure
on other archs, it doesn't change anything as parted2fdisk here is a link to fdisk

File:
1 edited

Legend:

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

    r161 r196  
    27482748
    27492749    sprintf(list_drives_cmd,
    2750             // "parted2fdisk
    2751             "fdisk -l 2>/dev/null | grep \"/dev/.*:\" | tr -s ':' ' ' | tr -s ' ' '\n' | grep /dev/; echo %s",
     2750            "parted2fdisk -l 2>/dev/null | grep \"/dev/.*:\" | tr -s ':' ' ' | tr -s ' ' '\n' | grep /dev/; echo %s",
    27522751            where_is_root_mounted());
    27532752    log_it("list_drives_cmd = %s", list_drives_cmd);
     
    29042903    malloc_string(fdisk);
    29052904    log_msg(0, "Looking for partition table format type");
    2906 // BERLIOS: Do that temporarily: we need to put back parted2fdisk everywhere
    2907 #ifdef __IA64__
    2908     sprintf(fdisk, "/usr/local/bin/fdisk");
    2909     if (stat(fdisk, &buf) != 0) {
    2910 #endif
    2911         sprintf(fdisk, "/sbin/fdisk");
    2912 #ifdef __IA64__
    2913     }
    2914 #endif
     2905    sprintf(fdisk, "/sbin/parted2fdisk");
    29152906    log_msg(1, "Using %s", fdisk);
    29162907    sprintf(command, "%s -l %s | grep 'EFI GPT'", fdisk, drive);
Note: See TracChangeset for help on using the changeset viewer.