Changeset 1548 in MondoRescue for branches/stable/mondo/src/mondorestore
- Timestamp:
- Jul 24, 2007, 1:39:36 AM (17 years ago)
- Location:
- branches/stable/mondo/src/mondorestore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/stable/mondo/src/mondorestore/mondo-rstr-tools.c
r1500 r1548 1410 1410 mvaddstr_and_log_it(g_currentY, 1411 1411 0, 1412 _ 1413 ("Modifying fstab and grub.conf, and running GRUB... ")); 1412 ("Modifying fstab, mtab, device.map and grub.conf, and running GRUB... ")); 1414 1413 for (done = FALSE; !done;) { 1415 1414 popup_and_get_string(_("Boot device"), … … 1430 1429 done = TRUE; 1431 1430 } 1432 popup_and_OK(_("You will now edit fstab and grub.conf"));1431 popup_and_OK(_("You will now edit fstab, mtab, device.map and grub.conf")); 1433 1432 if (!g_text_mode) { 1434 1433 newtSuspend(); … … 1438 1437 mr_free(tmp); 1439 1438 1439 mr_asprintf(&tmp, "chroot %s %s /etc/mtab", MNT_RESTORING, editor); 1440 paranoid_system(tmp); 1441 mr_free(tmp); 1442 1440 1443 mr_asprintf(&tmp, "chroot %s %s /etc/grub.conf", MNT_RESTORING, editor); 1444 paranoid_system(tmp); 1445 mr_free(tmp); 1446 1447 mr_asprintf(&tmp, "chroot %s %s /boot/grub/device.map", MNT_RESTORING, editor); 1441 1448 paranoid_system(tmp); 1442 1449 mr_free(tmp); -
branches/stable/mondo/src/mondorestore/mondorestore.c
r1458 r1548 345 345 *END_ EXTRACT_CONFIG_FILE_FROM_RAMDISK * 346 346 **************************************************************************/ 347 348 static void clean_blkid(struct s_bkpinfo *bkpinfo) { 349 350 char *tmp1 = NULL; 351 352 /* Clean up blkid cache file if they exist */ 353 mr_asprintf(&tmp1,"%s/etc/blkid.tab",bkpinfo->restore_path); 354 (void)unlink(tmp1); 355 mr_free(tmp1); 356 mr_asprintf(&tmp1,"%s/etc/blkid.tab.old",bkpinfo->restore_path); 357 (void)unlink(tmp1); 358 mr_free(tmp1); 359 } 347 360 348 361 … … 586 599 } 587 600 601 clean_blkid(bkpinfo); 588 602 protect_against_braindead_sysadmins(); 589 603 retval += unmount_all_devices(mountlist); … … 839 853 boot_loader_installed = TRUE; 840 854 } 855 clean_blkid(bkpinfo); 841 856 protect_against_braindead_sysadmins(); 842 857 retval += unmount_all_devices(mountlist);
Note:
See TracChangeset
for help on using the changeset viewer.