Changeset 2136 in MondoRescue for branches/2.2.8/mondo/src/mondorestore
- Timestamp:
- Feb 2, 2009, 1:09:01 PM (17 years ago)
- Location:
- branches/2.2.8/mondo/src/mondorestore
- Files:
-
- 2 edited
-
mondo-rstr-tools.c (modified) (1 diff)
-
mondorestore.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.8/mondo/src/mondorestore/mondo-rstr-tools.c
r2128 r2136 1361 1361 if (ask_me_yes_or_no 1362 1362 ("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 ?")) { 1363 log_msg(1,"Launching shell for manual initrd recreation"); 1364 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."); 1363 1365 mvaddstr_and_log_it(g_currentY, 0, "Modifying initrd..."); 1364 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.");1365 1366 if (!g_text_mode) { 1366 1367 newtSuspend(); -
branches/2.2.8/mondo/src/mondorestore/mondorestore.c
r2132 r2136 370 370 371 371 372 static void clean_multi conf() {372 static void clean_multipathconf() { 373 373 374 374 char *tmp1 = NULL; … … 389 389 } 390 390 paranoid_free(tmp1); 391 asprintf(&editor, "%s", find_my_editor()); 392 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 } 397 paranoid_system(tmp1); 398 paranoid_free(tmp1); 399 paranoid_free(editor); 391 392 if (bkpinfo->restore_mode != nuke) { 393 asprintf(&editor, "%s", find_my_editor()); 394 asprintf(&tmp1,"chroot %s %s /etc/multipath.conf", MNT_RESTORING, editor); 395 popup_and_OK("You will now edit multipath.conf"); 396 if (!g_text_mode) { 397 newtSuspend(); 398 } 399 paranoid_system(tmp1); 400 if (!g_text_mode) { 401 newtResume(); 402 } 403 paranoid_free(tmp1); 404 paranoid_free(editor); 405 } else { 406 log_to_screen("Non-interactive mode: no way to give you the keyboard so that you edit your multipath.conf. Hope it's OK"); 407 log_msg(1,"Non-interactive mode: no way to give you the keyboard so that you edit your multipath.conf. Hope it's OK"); 408 } 400 409 } 401 410 … … 634 643 } 635 644 636 clean_multi conf();645 clean_multipathconf(); 637 646 if (ask_me_yes_or_no("Initialize the boot loader?")) { 638 647 run_boot_loader(TRUE); … … 871 880 iamhere("Restoring everything"); 872 881 retval += restore_everything(NULL); 873 clean_multi conf();882 clean_multipathconf(); 874 883 if (!run_boot_loader(FALSE)) { 875 884 log_msg(1,
Note:
See TracChangeset
for help on using the changeset viewer.
