Changeset 1547 in MondoRescue
- Timestamp:
- Jul 24, 2007, 1:20:40 AM (18 years ago)
- Location:
- branches/2.2.5/mondo/src/mondorestore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.5/mondo/src/mondorestore/mondo-restore.c
r1453 r1547 357 357 *END_FIND_PATHNAME_OF_EXECUTABLE_PREFERABLY_IN_RESTORING * 358 358 **************************************************************************/ 359 360 static void clean_blkid(struct s_bkpinfo *bkpinfo) { 361 362 char *tmp1 = NULL; 363 364 /* Clean up blkid cache file if they exist */ 365 asprintf(&tmp1,"%s/etc/blkid.tab",bkpinfo->restore_path); 366 (void)unlink(tmp1); 367 paranoid_free(tmp1); 368 asprintf(&tmp1,"%s/etc/blkid.tab.old",bkpinfo->restore_path); 369 (void)unlink(tmp1); 370 paranoid_free(tmp1); 371 } 359 372 360 373 … … 599 612 } 600 613 601 // run_program_and_log_output("cp -af /etc/lvm " MNT_RESTORING "/etc/", 1);614 clean_blkid(bkpinfo); 602 615 protect_against_braindead_sysadmins(); 603 616 // modify_rclocal_one_time( MNT_RESTORING "/etc" ); … … 838 851 boot_loader_installed = TRUE; 839 852 } 853 clean_blkid(bkpinfo); 840 854 protect_against_braindead_sysadmins(); 841 // run_program_and_log_output("cp -af /etc/lvm " MNT_RESTORING "/etc/", 1);842 855 // modify_rclocal_one_time( MNT_RESTORING "/etc" ); 843 856 retval += unmount_all_devices(mountlist); -
branches/2.2.5/mondo/src/mondorestore/mondo-rstr-tools.c
r1541 r1547 1679 1679 mvaddstr_and_log_it(g_currentY, 1680 1680 0, 1681 "Modifying fstab and grub.conf, and running GRUB... ");1681 "Modifying fstab, mtab, device.map and grub.conf, and running GRUB... "); 1682 1682 for (done = FALSE; !done;) { 1683 1683 popup_and_get_string("Boot device", … … 1696 1696 done = TRUE; 1697 1697 } 1698 popup_and_OK("You will now edit fstab and grub.conf");1698 popup_and_OK("You will now edit fstab, mtab, device.map and grub.conf"); 1699 1699 if (!g_text_mode) { 1700 1700 newtSuspend(); … … 1702 1702 sprintf(tmp, "chroot %s %s /etc/fstab", MNT_RESTORING, editor); 1703 1703 paranoid_system(tmp); 1704 sprintf(tmp, "chroot %s %s /etc/mtab", MNT_RESTORING, editor); 1705 paranoid_system(tmp); 1704 1706 sprintf(tmp, "chroot %s %s /etc/grub.conf", MNT_RESTORING, editor); 1707 paranoid_system(tmp); 1708 sprintf(tmp, "chroot %s %s /boot/grub/device.map", MNT_RESTORING, editor); 1705 1709 paranoid_system(tmp); 1706 1710 if (!g_text_mode) {
Note:
See TracChangeset
for help on using the changeset viewer.