Changeset 85 in MondoRescue for branches/2.04_berlios/mondo/mondo/common/libmondo-devices.c
- Timestamp:
- Oct 22, 2005, 12:31:29 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.04_berlios/mondo/mondo/common/libmondo-devices.c
r30 r85 1 1 /* 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$ 3 3 . 4 4 … … 252 252 253 253 /*@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$"; 255 255 256 256 extern int g_current_media_number; … … 2669 2669 char *tmp; 2670 2670 char *command; 2671 char *fdisk; 2672 struct stat buf; 2671 2673 2672 2674 malloc_string(tmp); 2673 2675 malloc_string(command); 2676 malloc_string(fdisk); 2674 2677 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); 2676 2689 strcpy(tmp, call_program_and_get_last_line_of_output(command)); 2677 2690 if (strstr(tmp,"GPT") == NULL) { … … 2683 2696 paranoid_free(command); 2684 2697 paranoid_free(tmp); 2698 paranoid_free(fdisk); 2685 2699 return(output); 2686 2700 }
Note:
See TracChangeset
for help on using the changeset viewer.