Changeset 2094 in MondoRescue for branches/2.2.8/mondo/src/mondorestore/mondo-rstr-tools.c
- Timestamp:
- Dec 17, 2008, 12:59:22 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.8/mondo/src/mondorestore/mondo-rstr-tools.c
r2087 r2094 1348 1348 } 1349 1349 1350 void offer_to_make_initrd() { 1351 1352 if (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 ?")) { 1355 return; 1356 } 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(); 1361 } else { 1362 log_to_screen("Non-interactive mode: no way to give you the keyboard so that you re-generate your initrd. Hope it's OK"); 1363 log_msg(1,"Non-interactive mode: no way to give you the keyboard so that you re-generate your initrd. Hope it's OK"); 1364 } 1365 } 1366 1350 1367 1351 1368 /** … … 1389 1406 paranoid_free(tmp); 1390 1407 system("sync"); 1408 1409 offer_to_make_initrd(); 1391 1410 if (!strcmp(name, "LILO")) { 1392 1411 res = run_lilo(offer_to_hack_scripts); … … 1506 1525 } 1507 1526 if (offer_to_run_stabgrub 1508 && ask_me_yes_or_no("Did you change the mountlist ?"))1527 && ask_me_yes_or_no("Did you change the mountlist or cloned the system ?")) 1509 1528 /* interactive mode */ 1510 1529 { … … 1613 1632 strcpy(editor, find_my_editor()); 1614 1633 if (offer_to_run_stabelilo 1615 && ask_me_yes_or_no("Did you change the mountlist ?"))1634 && ask_me_yes_or_no("Did you change the mountlist or cloned the system ?")) 1616 1635 1617 1636 /* interactive mode */ … … 1687 1706 strcpy(editor, find_my_editor()); 1688 1707 if (offer_to_run_stablilo 1689 && ask_me_yes_or_no("Did you change the mountlist ?"))1708 && ask_me_yes_or_no("Did you change the mountlist or cloned the system ?")) 1690 1709 1691 1710 /* interactive mode */ … … 1800 1819 1801 1820 if (offer_to_hack_scripts 1802 && ask_me_yes_or_no("Did you change the mountlist ?"))1821 && ask_me_yes_or_no("Did you change the mountlist or cloned the system ?")) 1803 1822 /* interactive mode */ 1804 1823 { … … 2429 2448 paranoid_free(raidlist); 2430 2449 } 2450 2451
Note:
See TracChangeset
for help on using the changeset viewer.