Changeset 1438 in MondoRescue for branches/stable/mondo/src/common/libmondo-archive.c
- Timestamp:
- May 12, 2007, 1:55:13 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/stable/mondo/src/common/libmondo-archive.c
r1408 r1438 933 933 if (!res) { 934 934 log_to_screen("Boot+data disks were created OK"); 935 mr_asprintf(&command, "mkdir -p /var/cache/mindi/");935 mr_asprintf(&command, "mkdir -p "MINDI_CACHE); 936 936 mr_msg(2, command); 937 937 run_program_and_log_output(command, FALSE); … … 939 939 940 940 mr_asprintf(&command, 941 "cp -f %s/images/mindi.iso /var/cache/mindi/mondorescue.iso",942 bkpinfo->scratchdir );941 "cp -f %s/images/mindi.iso %s/mondorescue.iso", 942 bkpinfo->scratchdir, MINDI_CACHE); 943 943 mr_msg(2, command); 944 944 run_program_and_log_output(command, FALSE); … … 2761 2761 if (!bkpinfo->nonbootable_backup) { 2762 2762 #ifdef __FreeBSD__ 2763 if (!does_file_exist( "/var/cache/mindi/mindi-kern.1722.img"))2763 if (!does_file_exist(MINDI_CACHE"/mindi-kern.1722.img")) 2764 2764 #else 2765 2765 /* BERLIOS: To be improved */ 2766 if (!does_file_exist( "/var/cache/mindi/mindi-bootroot.1722.img")2767 && !does_file_exist( "/var/cache/mindi/mindi-boot.1440.img")2768 && !does_file_exist( "/var/cache/mindi/mindi-boot.2880.img")2769 && !does_file_exist( "/var/cache/mindi/mindi-boot.5760.img")2770 && !does_file_exist( "/var/cache/mindi/mindi-boot.8192.img"))2766 if (!does_file_exist(MINDI_CACHE"/mindi-bootroot.1722.img") 2767 && !does_file_exist(MINDI_CACHE"/mindi-boot.1440.img") 2768 && !does_file_exist(MINDI_CACHE"/mindi-boot.2880.img") 2769 && !does_file_exist(MINDI_CACHE"/mindi-boot.5760.img") 2770 && !does_file_exist(MINDI_CACHE"/mindi-boot.8192.img")) 2771 2771 #endif 2772 2772 { 2773 2773 mvaddstr_and_log_it(g_currentY++, 74, "No Imgs"); 2774 if (does_file_exist( "/var/cache/mindi/mondorescue.iso")) {2774 if (does_file_exist(MINDI_CACHE"/mondorescue.iso")) { 2775 2775 popup_and_OK 2776 ("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.");2776 ("Boot+data floppy creation failed. However, FYI, you may burn "MINDI_CACHE"/mondorescue.iso to a CD and boot from that instead if you wish."); 2777 2777 res++; 2778 2778 } 2779 2779 } else { 2780 offer_to_write_floppies(bkpinfo, "/var/cache/mindi");2780 offer_to_write_floppies(bkpinfo, MINDI_CACHE); 2781 2781 mvaddstr_and_log_it(g_currentY++, 74, "Done."); 2782 2782 }
Note:
See TracChangeset
for help on using the changeset viewer.