Ignore:
Timestamp:
Jul 24, 2007, 1:39:36 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
  • Fix what seems to appear a huge number of bugs in hack-fstab (illustration of 1 LOC = 1 bug :-)
  • Especially improve LABEL and UUID support.
  • Should fix #185
  • Exclude_path should be 4*MAX_STR_LEN everywhere. Fixed now.
  • Increasing that value will allow to having larger exclude paths.
  • Should solve bug #137 (and maybe #3 as well)
  • Adds support for fedora 7

(merge -r 1533:1547 $SVN_M/branches/2.2.5)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/stable/mondo/src/mondorestore/mondorestore.c

    r1458 r1548  
    345345 *END_  EXTRACT_CONFIG_FILE_FROM_RAMDISK                                  *
    346346 **************************************************************************/
     347
     348static 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}
    347360
    348361
     
    586599    }
    587600
     601    clean_blkid(bkpinfo);
    588602    protect_against_braindead_sysadmins();
    589603    retval += unmount_all_devices(mountlist);
     
    839853        boot_loader_installed = TRUE;
    840854    }
     855    clean_blkid(bkpinfo);
    841856    protect_against_braindead_sysadmins();
    842857    retval += unmount_all_devices(mountlist);
Note: See TracChangeset for help on using the changeset viewer.