Ignore:
Timestamp:
Oct 22, 2005, 12:31:29 AM (15 years ago)
Author:
bcornec
Message:

Patch allowing to restore on ia64 till 3rd CD :-)

File:
1 edited

Legend:

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

    r30 r85  
    11/* libmondo-devices.c                 Subroutines for handling devices
    2    $Id: libmondo-devices.c,v 1.26 2004/06/21 20:20:36 hugo Exp $
     2   $Id$
    33.
    44
     
    252252
    253253/*@unused@*/
    254 //static char cvsid[] = "$Id: libmondo-devices.c,v 1.26 2004/06/21 20:20:36 hugo Exp $";
     254//static char cvsid[] = "$Id$";
    255255
    256256extern int g_current_media_number;
     
    26692669  char *tmp;
    26702670  char *command;
     2671  char *fdisk;
     2672  struct stat buf;
    26712673   
    26722674  malloc_string(tmp);
    26732675  malloc_string(command);
     2676  malloc_string(fdisk);
    26742677  log_msg(0, "Looking for partition table format type");
    2675   sprintf(command, "fdisk -l %s | grep 'EFI GPT'", drive);
     2678// BERLIOS: Do that temporarily: we need to put back parted2fdisk everywhere
     2679#ifdef __IA64__
     2680  sprintf(fdisk, "/usr/local/bin/fdisk");
     2681  if (stat(fdisk, &buf) != 0) {
     2682#endif
     2683      sprintf(fdisk, "/sbin/fdisk");
     2684#ifdef __IA64__
     2685  }
     2686#endif
     2687  log_msg(1, "Using %s",fdisk);
     2688  sprintf(command, "%s -l %s | grep 'EFI GPT'", fdisk, drive);
    26762689  strcpy(tmp, call_program_and_get_last_line_of_output(command));
    26772690  if (strstr(tmp,"GPT") == NULL) {
     
    26832696  paranoid_free(command);
    26842697  paranoid_free(tmp);
     2698  paranoid_free(fdisk);
    26852699  return(output);
    26862700}
Note: See TracChangeset for help on using the changeset viewer.