Changeset 196 in MondoRescue for branches/2.05/mondo/mondo/common/libmondo-devices.c
- Timestamp:
- Dec 14, 2005, 12:04:21 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.05/mondo/mondo/common/libmondo-devices.c
r161 r196 2748 2748 2749 2749 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", 2752 2751 where_is_root_mounted()); 2753 2752 log_it("list_drives_cmd = %s", list_drives_cmd); … … 2904 2903 malloc_string(fdisk); 2905 2904 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"); 2915 2906 log_msg(1, "Using %s", fdisk); 2916 2907 sprintf(command, "%s -l %s | grep 'EFI GPT'", fdisk, drive);
Note:
See TracChangeset
for help on using the changeset viewer.