Changeset 197 in MondoRescue for trunk/mondo/mondo/common/libmondo-devices.c
- Timestamp:
- Dec 14, 2005, 12:12:15 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/mondo/mondo/common/libmondo-devices.c
r171 r197 2264 2264 assert(which_device != NULL); 2265 2265 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", 2268 2267 where_is_root_mounted()); 2269 2268 log_it("list_drives_cmd = %s", list_drives_cmd); … … 2419 2418 2420 2419 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"); 2433 2421 log_msg(1, "Using %s", fdisk); 2434 2422 asprintf(&command, "%s -l %s | grep 'EFI GPT'", fdisk, drive);
Note:
See TracChangeset
for help on using the changeset viewer.