Changeset 2449 in MondoRescue for branches/2.2.9/mondo/src/mondorestore/mondo-rstr-tools.c
- Timestamp:
- Oct 6, 2009, 1:10:35 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.9/mondo/src/mondorestore/mondo-rstr-tools.c
r2403 r2449 1404 1404 backup_crucial_file(MNT_RESTORING, "/etc/fstab"); 1405 1405 backup_crucial_file(MNT_RESTORING, "/boot/grub/menu.lst"); 1406 backup_crucial_file(MNT_RESTORING, "/boot/grub/grub.cfg"); 1406 1407 backup_crucial_file(MNT_RESTORING, "/etc/lilo.conf"); 1407 1408 backup_crucial_file(MNT_RESTORING, "/etc/elilo.conf"); … … 1538 1539 mvaddstr_and_log_it(g_currentY, 1539 1540 0, 1540 "Modifying fstab, mtab, device.map and menu.lst , and running GRUB... ");1541 "Modifying fstab, mtab, device.map and menu.lst/grub.cfg, and running GRUB... "); 1541 1542 for (done = FALSE; !done;) { 1542 1543 popup_and_get_string("Boot device", … … 1555 1556 done = TRUE; 1556 1557 } 1557 popup_and_OK("You will now edit fstab, mtab, device.map and menu.lst ");1558 popup_and_OK("You will now edit fstab, mtab, device.map and menu.lst/grub.cfg"); 1558 1559 if (!g_text_mode) { 1559 1560 newtSuspend(); … … 1563 1564 sprintf(tmp, "chroot %s %s /etc/mtab", MNT_RESTORING, editor); 1564 1565 paranoid_system(tmp); 1565 sprintf(tmp, "chroot %s %s /boot/grub/menu.lst", MNT_RESTORING, editor); 1566 if (does_file_exist(MNT_RESTORING"/boot/grub/menu.lst")) { 1567 sprintf(tmp, "chroot %s %s /boot/grub/menu.lst", MNT_RESTORING, editor); 1568 } else if (does_file_exist(MNT_RESTORING"/boot/grub/grub.cfg")) { 1569 sprintf(tmp, "chroot %s %s /boot/grub/grub.cfg", MNT_RESTORING, editor); 1570 } 1566 1571 paranoid_system(tmp); 1567 1572 sprintf(tmp, "chroot %s %s /boot/grub/device.map", MNT_RESTORING, editor);
Note:
See TracChangeset
for help on using the changeset viewer.