Changeset 1402 in MondoRescue for branches/2.2.4


Ignore:
Timestamp:
May 7, 2007, 11:29:19 AM (17 years ago)
Author:
Bruno Cornec
Message:

Follow up of the previous patch to place mindi iso image under /var/cache/mindi instead of /root/images/mindi.

File:
1 edited

Legend:

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

    r1317 r1402  
    10471047    if (!res) {
    10481048        log_to_screen("Boot+data disks were created OK");
    1049         sprintf(command, "mkdir -p /root/images/mindi/");
     1049        sprintf(command, "mkdir -p /var/cache/mindi/");
    10501050        log_msg(2, command);
    10511051        run_program_and_log_output(command, FALSE);
    10521052        sprintf(command,
    1053                 "cp -f %s/images/mindi.iso /root/images/mindi/mondorescue.iso",
     1053                "cp -f %s/images/mindi.iso /var/cache/mindi/mondorescue.iso",
    10541054                bkpinfo->scratchdir);
    10551055        log_msg(2, command);
     
    27792779 * @c backup_media_type field is used in this function.
    27802780 * @param imagesdir The directory containing the floppy images (usually
    2781  * /root/images/mindi).
     2781 * /var/cache/mindi).
    27822782 *
    27832783 * @return The number of errors encountered (0 for success)
     
    29582958    if (!bkpinfo->nonbootable_backup) {
    29592959#ifdef __FreeBSD__
    2960         if (!does_file_exist("/root/images/mindi/mindi-kern.1722.img"))
     2960        if (!does_file_exist("/var/cache/mindi/mindi-kern.1722.img"))
    29612961#else
    2962         if (!does_file_exist("/root/images/mindi/mindi-bootroot.1722.img")
    2963             && !does_file_exist("/root/images/mindi/mindi-boot.1440.img"))
     2962        if (!does_file_exist("/var/cache/mindi/mindi-bootroot.1722.img")
     2963            && !does_file_exist("/var/cache/mindi/mindi-boot.1440.img"))
    29642964#endif
    29652965        {
    29662966            mvaddstr_and_log_it(g_currentY++, 74, "No Imgs");
    2967             if (does_file_exist("/root/images/mindi/mondorescue.iso")) {
     2967            if (does_file_exist("/var/cache/mindi/mondorescue.iso")) {
    29682968                popup_and_OK
    2969                     ("Boot+data floppy creation failed. However, FYI, you may burn /root/images/mindi/mondorescue.iso to a CD and boot from that instead if you wish.");
     2969                    ("Boot+data floppy creation failed. However, FYI, you may burn /var/cache/mindi/mondorescue.iso to a CD and boot from that instead if you wish.");
    29702970                res++;
    29712971            }
    29722972        } else {
    2973             offer_to_write_floppies(bkpinfo, "/root/images/mindi");
     2973            offer_to_write_floppies(bkpinfo, "/var/cache/mindi");
    29742974            mvaddstr_and_log_it(g_currentY++, 74, "Done.");
    29752975        }
Note: See TracChangeset for help on using the changeset viewer.