Changeset 1547 in MondoRescue for branches/2.2.5/mondo/src/mondorestore/mondo-restore.c
- Timestamp:
- Jul 24, 2007, 1:20:40 AM (17 years ago)
- File:
-
- 1 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);
Note:
See TracChangeset
for help on using the changeset viewer.