Changeset 2451 in MondoRescue for branches/2.2.10/mondo/src/mondorestore/mondo-rstr-tools.c
- Timestamp:
- Oct 6, 2009, 1:34:09 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.10/mondo/src/mondorestore/mondo-rstr-tools.c
r2405 r2451 1387 1387 backup_crucial_file(MNT_RESTORING, "/etc/fstab"); 1388 1388 backup_crucial_file(MNT_RESTORING, "/boot/grub/menu.lst"); 1389 backup_crucial_file(MNT_RESTORING, "/boot/grub/grub.cfg"); 1389 1390 backup_crucial_file(MNT_RESTORING, "/etc/lilo.conf"); 1390 1391 backup_crucial_file(MNT_RESTORING, "/etc/elilo.conf"); … … 1512 1513 mvaddstr_and_log_it(g_currentY, 1513 1514 0, 1514 "Modifying fstab, mtab, device.map and menu.lst , and running GRUB... ");1515 "Modifying fstab, mtab, device.map and menu.lst/grub.cfg, and running GRUB... "); 1515 1516 for (done = FALSE; !done;) { 1516 1517 p = popup_and_get_string("Boot device", "Please confirm/enter the boot device. If in doubt, try /dev/hda", boot_device); … … 1538 1539 done = TRUE; 1539 1540 } 1540 popup_and_OK("You will now edit fstab, mtab, device.map and menu.lst ");1541 popup_and_OK("You will now edit fstab, mtab, device.map and menu.lst/grub.cfg"); 1541 1542 if (!g_text_mode) { 1542 1543 newtSuspend(); … … 1552 1553 mr_free(tmp); 1553 1554 1554 mr_asprintf(tmp, "chroot %s %s /boot/grub/menu.lst", MNT_RESTORING, editor); 1555 if (does_file_exist(MNT_RESTORING"/boot/grub/menu.lst")) { 1556 mr_asprintf(tmp, "chroot %s %s /boot/grub/menu.lst", MNT_RESTORING, editor); 1557 } else if (does_file_exist(MNT_RESTORING"/boot/grub/grub.cfg")) { 1558 mr_asprintf(tmp, "chroot %s %s /boot/grub/grub.cfg", MNT_RESTORING, editor); 1559 } 1555 1560 paranoid_system(tmp); 1556 1561 mr_free(tmp);
Note:
See TracChangeset
for help on using the changeset viewer.