Changeset 2110 in MondoRescue


Ignore:
Timestamp:
Jan 8, 2009, 10:15:19 AM (12 years ago)
Author:
Bruno Cornec
Message:

Improve call to offer_to_make_initrd which is timeouting right now

File:
1 edited

Legend:

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

    r2095 r2110  
    13511351
    13521352if (bkpinfo->restore_mode != nuke) {
    1353     if (!ask_me_yes_or_no
    1354         ("You will now be able to re-generate your initrd.\nThis specially useful if you changed of hardware configuration, cloned, made P2V, used multipath... Do you need to do it ?")) {
     1353    if (ask_me_yes_or_no
     1354        ("You will now be able to re-generate your initrd.\nThis is especially useful if you changed of hardware configuration, cloned, made P2V, used multipath...\nDo you need to do it ?")) {
     1355        mvaddstr_and_log_it(g_currentY, 0, "Modifying initrd...");
     1356        popup_and_OK("You'll now be chrooted under your future / partition.\nGo under /boot and rebuild your initrd with\nmkinitrd -f -v initrd-2.x.y.img 2.x.y e.g.\nThen type exit to finish.");
     1357        if (!g_text_mode) {
     1358            newtSuspend();
     1359        }
     1360        (void)system("chroot " MNT_RESTORING);
     1361        if (!g_text_mode) {
     1362            newtResume();
     1363        }
     1364        mvaddstr_and_log_it(g_currentY++, 74, "Done.");
     1365    } else {
    13551366        return;
    13561367    }
    1357     popup_and_OK("You'll now be chrooted under your future / partition.\nGo under /boot and rebuild your initrd with\nmkinitrd -f -v initrd-2.x.y.img 2.x.y e.g.\nThen type exit to finish.");
    1358     newtSuspend();
    1359     (void)system("chroot " MNT_RESTORING);
    1360     newtResume();
    13611368} else {
    13621369    log_to_screen("Non-interactive mode: no way to give you the keyboard so that you re-generate your initrd. Hope it's OK");
Note: See TracChangeset for help on using the changeset viewer.