Ignore:
Timestamp:
Jun 17, 2014, 9:10:18 PM (10 years ago)
Author:
Bruno Cornec
Message:
  • Fix a usage of mountlist.txt still with MINDI_CACHE, incorrect for now.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.2/mondo/src/mondorestore/mondorestore.c

    r3278 r3301  
    634634        mr_free(tmp1);
    635635        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");
    638637            mvaddstr_and_log_it(g_currentY++, 74, "Failed.");
    639638        } else {
     
    727726 * @warning <b><i>THIS WILL ERASE ALL EXISTING DATA!</i></b>
    728727 */
    729 int
    730 nuke_mode(struct mountlist_itself *mountlist,
    731           struct raidlist_itself *raidlist)
     728int nuke_mode(struct mountlist_itself *mountlist, struct raidlist_itself *raidlist)
    732729{
    733730    int retval = 0;
     
    807804    retval += res;
    808805    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.");
    812807
    813808        if (ask_me_yes_or_no("Try in interactive mode instead?")) {
     
    815810            goto after_the_nuke;
    816811        } 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?")) {
    819813            return (retval);
    820814        }
     
    823817    if (retval) {
    824818        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.");
    827820        return (retval);
    828821    }
     
    831824    clean_multipathconf();
    832825    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.");
    835827    }
    836828    clean_blkid();
    837829    protect_against_braindead_sysadmins();
    838830    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);
    844834    res = run_program_and_log_output(tmp1, TRUE);
    845835    mr_free(tmp1);
Note: See TracChangeset for help on using the changeset viewer.