Ignore:
Timestamp:
Oct 30, 2007, 1:18:55 PM (13 years ago)
Author:
Bruno Cornec
Message:
  • Solve problem on tmpfs in restore init (Problem of inexistant symlink and busybox)
  • Create MONDO_CACHE and use it everywhere + creation at start
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.5/mondo/src/mondoarchive/main.c

    r1736 r1747  
    327327
    328328    log_msg(9, "Next");
     329    make_hole_for_dir(MONDO_CACHE);
     330
    329331    welcome_to_mondoarchive();
    330332    distro_specific_kludges_at_start_of_mondoarchive();
     
    505507    }
    506508
    507     if (length_of_file(MINDI_CACHE"/changed.files") > 2) {
     509    if (length_of_file(MONDO_CACHE"/changed.files") > 2) {
    508510        if (g_text_mode) {
    509             log_to_screen("Type 'less "MINDI_CACHE"/changed.files' to see which files don't match the archives");
    510         } else {
    511             log_msg(1, "Type 'less "MINDI_CACHE"/changed.files' to see which files don't match the archives");
     511            log_to_screen("Type 'less "MONDO_CACHE"/changed.files' to see which files don't match the archives");
     512        } else {
     513            log_msg(1, "Type 'less "MONDO_CACHE"/changed.files' to see which files don't match the archives");
    512514            log_msg(2, "Calling popup_changelist_from_file()");
    513             popup_changelist_from_file(MINDI_CACHE"/changed.files");
     515            popup_changelist_from_file(MONDO_CACHE"/changed.files");
    514516            log_msg(2, "Returned from popup_changelist_from_file()");
    515517        }
    516518    } else {
    517         unlink(MINDI_CACHE"/changed.files");
     519        unlink(MONDO_CACHE"/changed.files");
    518520    }
    519521    log_to_screen(say_at_end);
     
    528530    run_program_and_log_output("mount", 2);
    529531
    530     system("rm -f /var/cache/mondo-archive/last-backup.aborted");
     532    system("rm -f "MONDO_CACHE"/last-backup.aborted");
    531533    if (!retval) {
    532534        printf("Mondoarchive ran OK.\n");
Note: See TracChangeset for help on using the changeset viewer.