Ignore:
Timestamp:
May 10, 2007, 11:41:11 PM (17 years ago)
Author:
andree
Message:

New define 'MINDI_CACHE' set to '/var/cache/mindi' rather than
hardcoding this in the code. Makes it easy to change the location. Also
adjusted some of the messages related to boot floppies or CDs.

(Also added missing debug level to log_debug() call.)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.4/mondo/src/common/libmondo-tools.c

    r1381 r1437  
    11001100#endif
    11011101
    1102     if ((Lres = free_space_on_given_partition("/root")) == -1) {
    1103         Lres = free_space_on_given_partition("/");
    1104     }
    1105     log_it("Free space on given partition = %ld MB", Lres);
     1102    Lres = free_space_on_given_partition(MINDI_CACHE);
     1103    log_it("Free space on partition of %s = %ld MB", MINDI_CACHE, Lres);
    11061104
    11071105    if (Lres < 50) {
    1108         run_program_and_log_output
    1109             ("rm -Rf /root/images/mindi; mkdir -p /home/root/images/mindi; mkdir -p /root/images; ln -sf /home/root/images/mindi /root/images/mindi",
    1110              3);
    1111         //      fatal_error("Your / (or /root) partition has <50MB free. Please adjust your partition table to something saner.");
     1106        sprintf(tmp, "The partition of %s has <50MB free. Please free up space or enlarge the partition or make %s a symbolic link.", MINDI_CACHE, MINDI_CACHE);
     1107        fatal_error(tmp);
    11121108    }
    11131109
Note: See TracChangeset for help on using the changeset viewer.