Ignore:
Timestamp:
Jul 24, 2007, 1:20:40 AM (13 years ago)
Author:
Bruno Cornec
Message:
  • Add the possibiilty to edit in interactive mode mtab and device.map for grub
  • Remove blkid cache files after restore to avoid problems in cloning mode
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.5/mondo/src/mondorestore/mondo-restore.c

    r1453 r1547  
    357357 *END_FIND_PATHNAME_OF_EXECUTABLE_PREFERABLY_IN_RESTORING                 *
    358358 **************************************************************************/
     359
     360static 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}
    359372
    360373
     
    599612    }
    600613
    601 //  run_program_and_log_output("cp -af /etc/lvm " MNT_RESTORING "/etc/", 1);
     614    clean_blkid(bkpinfo);
    602615    protect_against_braindead_sysadmins();
    603616    //  modify_rclocal_one_time( MNT_RESTORING "/etc" );
     
    838851        boot_loader_installed = TRUE;
    839852    }
     853    clean_blkid(bkpinfo);
    840854    protect_against_braindead_sysadmins();
    841 //  run_program_and_log_output("cp -af /etc/lvm " MNT_RESTORING "/etc/", 1);
    842855    //  modify_rclocal_one_time( MNT_RESTORING "/etc" );
    843856    retval += unmount_all_devices(mountlist);
Note: See TracChangeset for help on using the changeset viewer.