Changeset 3301 in MondoRescue for branches/3.2/mondo/src/mondorestore/mondorestore.c
- Timestamp:
- Jun 17, 2014, 9:10:18 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.2/mondo/src/mondorestore/mondorestore.c
r3278 r3301 634 634 mr_free(tmp1); 635 635 if (res) { 636 log_to_screen 637 ("label-partitions-as-necessary returned an error"); 636 log_to_screen("label-partitions-as-necessary returned an error"); 638 637 mvaddstr_and_log_it(g_currentY++, 74, "Failed."); 639 638 } else { … … 727 726 * @warning <b><i>THIS WILL ERASE ALL EXISTING DATA!</i></b> 728 727 */ 729 int 730 nuke_mode(struct mountlist_itself *mountlist, 731 struct raidlist_itself *raidlist) 728 int nuke_mode(struct mountlist_itself *mountlist, struct raidlist_itself *raidlist) 732 729 { 733 730 int retval = 0; … … 807 804 retval += res; 808 805 if (res) { 809 mvaddstr_and_log_it(g_currentY++, 810 0, 811 "Failed to partition and/or format your hard drives."); 806 mvaddstr_and_log_it(g_currentY++, 0, "Failed to partition and/or format your hard drives."); 812 807 813 808 if (ask_me_yes_or_no("Try in interactive mode instead?")) { … … 815 810 goto after_the_nuke; 816 811 } else 817 if (!ask_me_yes_or_no 818 ("Would you like to try to proceed anyway?")) { 812 if (!ask_me_yes_or_no("Would you like to try to proceed anyway?")) { 819 813 return (retval); 820 814 } … … 823 817 if (retval) { 824 818 unmount_all_devices(mountlist); 825 log_to_screen 826 ("Unable to mount all partitions. Sorry, I cannot proceed."); 819 log_to_screen("Unable to mount all partitions. Sorry, I cannot proceed."); 827 820 return (retval); 828 821 } … … 831 824 clean_multipathconf(); 832 825 if (!run_boot_loader(FALSE)) { 833 log_msg(1, 834 "Great! Boot loader was installed. No need for msg at end."); 826 log_msg(1, "Great! Boot loader was installed. No need for msg at end."); 835 827 } 836 828 clean_blkid(); 837 829 protect_against_braindead_sysadmins(); 838 830 retval += unmount_all_devices(mountlist); 839 mvaddstr_and_log_it(g_currentY, 840 0, 841 "Using tune2fs/tune4fs to identify your ext2,3,4 partitions"); 842 843 mr_asprintf(tmp1, "label-partitions-as-necessary %s < /tmp/fstab >> %s 2>> %s", MINDI_CACHE"/mountlist.txt", MONDO_LOGFILE, MONDO_LOGFILE); 831 mvaddstr_and_log_it(g_currentY, 0, "Using tune2fs/tune4fs to identify your ext2,3,4 partitions"); 832 833 mr_asprintf(tmp1, "label-partitions-as-necessary %s < /tmp/fstab >> %s 2>> %s", "/tmp/mountlist.txt", MONDO_LOGFILE, MONDO_LOGFILE); 844 834 res = run_program_and_log_output(tmp1, TRUE); 845 835 mr_free(tmp1);
Note:
See TracChangeset
for help on using the changeset viewer.