Ignore:
Timestamp:
Dec 17, 2008, 12:59:22 AM (15 years ago)
Author:
Bruno Cornec
Message:
  • Adds support for initrd regeneration at restore time.
File:
1 edited

Legend:

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

    r2087 r2094  
    391391    asprintf(&editor, "%s", find_my_editor());
    392392    asprintf(&tmp1,"chroot %s %s /etc/multipath.conf", MNT_RESTORING, editor);
     393    popup_and_OK("You will now edit multipath.conf");
     394    if (!g_text_mode) {
     395        newtSuspend();
     396    }
    393397    paranoid_system(tmp1);
    394398    paranoid_free(tmp1);
     
    630634    }
    631635
     636    clean_multiconf();
    632637    if (ask_me_yes_or_no("Initialize the boot loader?")) {
    633638        run_boot_loader(TRUE);
     
    639644
    640645    clean_blkid();
    641     clean_multiconf();
    642646    protect_against_braindead_sysadmins();
    643647    retval += unmount_all_devices(mountlist);
     
    867871    iamhere("Restoring everything");
    868872    retval += restore_everything(NULL);
     873    clean_multiconf();
    869874    if (!run_boot_loader(FALSE)) {
    870875        log_msg(1,
     
    873878    }
    874879    clean_blkid();
    875     clean_multiconf();
    876880    protect_against_braindead_sysadmins();
    877881    retval += unmount_all_devices(mountlist);
     
    28182822    bool run_postnuke = FALSE;
    28192823
    2820   /**************************************************************************
    2821    * hugo-                                                                  *
    2822    * busy stuff here - it needs some comments -stan                           *
    2823    *                                                                        *
    2824    **************************************************************************/
    28252824    if (getuid() != 0) {
    28262825        fprintf(stderr, "Please run as root.\r\n");
Note: See TracChangeset for help on using the changeset viewer.