Changeset 3436 in MondoRescue
- Timestamp:
- Aug 28, 2015, 3:52:36 PM (9 years ago)
- Location:
- branches/3.2/mondo/src
- Files:
-
- 1 deleted
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.2/mondo/src/mondorestore/mondo-prep.c
r3435 r3436 787 787 log_to_screen(tmp); 788 788 mr_free(tmp); 789 790 if (res && strstr(program, "kludge")) {791 mr_asprintf(tmp, "Kludge failed; using regular mkfs.%s to format %s", format, device);792 mr_free(program);793 #ifdef __FreeBSD__794 mr_asprintf(program, "newfs_msdos -F 32 %s", device);795 #else796 #ifdef __IA64__797 /* For EFI or UEFI partitions take fat16798 * as we want to make small ones */799 mr_asprintf(program, "mkfs -t %s -F 16 %s", format, device);800 #else801 mr_asprintf(program, "mkfs -t %s -F 32 %s", format, device);802 #endif803 #endif804 res = run_program_and_log_output(program, FALSE);805 if (g_fprep) {806 fprintf(g_fprep, "%s\n", program);807 }808 mr_free(program);809 810 if (retval) {811 mr_strcat(tmp, "...failed");812 } else {813 mr_strcat(tmp, "...OK");814 }815 816 log_to_screen(tmp);817 mr_free(tmp);818 819 789 } 820 790 retval += res; … … 2127 2097 #endif 2128 2098 } else if (strcmp(format, "vfat") == 0) { 2129 mr_asprintf(program, "format-and-kludge-vfat"); 2099 #ifdef __FreeBSD__ 2100 mr_asprintf(program, "newfs_msdos -F 32"); 2101 #else 2102 #ifdef __IA64__ 2103 /* For EFI or UEFI partitions take fat16 2104 * as we want to make small ones */ 2105 mr_asprintf(program, "mkfs.vfat -F 16"); 2106 #else 2107 mr_asprintf(program, "mkfs.vfat -F 32"); 2108 #endif 2109 #endif 2130 2110 #ifndef __FreeBSD__ 2131 2111 } else if (strcmp(format, "reiserfs") == 0) {
Note:
See TracChangeset
for help on using the changeset viewer.