Changeset 1044 in MondoRescue for branches/stable/mondo/src
- Timestamp:
- Jan 9, 2007, 12:54:21 AM (18 years ago)
- Location:
- branches/stable/mondo/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/stable/mondo/src/common/libmondo-archive.c
r998 r1044 1046 1046 if (!res) { 1047 1047 log_to_screen("Boot+data disks were created OK"); 1048 sprintf(command, "mkdir -p / root/images/mindi/");1048 sprintf(command, "mkdir -p /var/cache/mindi/"); 1049 1049 log_msg(2, command); 1050 1050 run_program_and_log_output(command, FALSE); 1051 1051 sprintf(command, 1052 "cp -f %s/images/mindi.iso / root/images/mindi/mondorescue.iso",1052 "cp -f %s/images/mindi.iso /var/cache/mindi/mondorescue.iso", 1053 1053 bkpinfo->scratchdir); 1054 1054 log_msg(2, command); … … 2771 2771 * @c backup_media_type field is used in this function. 2772 2772 * @param imagesdir The directory containing the floppy images (usually 2773 * / root/images/mindi).2773 * /var/cache/mindi). 2774 2774 * 2775 2775 * @return The number of errors encountered (0 for success) … … 2950 2950 if (!bkpinfo->nonbootable_backup) { 2951 2951 #ifdef __FreeBSD__ 2952 if (!does_file_exist("/ root/images/mindi/mindi-kern.1722.img"))2952 if (!does_file_exist("/var/cache/mindi/mindi-kern.1722.img")) 2953 2953 #else 2954 if (!does_file_exist("/ root/images/mindi/mindi-bootroot.1722.img")2955 && !does_file_exist("/ root/images/mindi/mindi-boot.1440.img"))2954 if (!does_file_exist("/var/cache/mindi/mindi-bootroot.1722.img") 2955 && !does_file_exist("/var/cache/mindi/mindi-boot.1440.img")) 2956 2956 #endif 2957 2957 { 2958 2958 mvaddstr_and_log_it(g_currentY++, 74, "No Imgs"); 2959 if (does_file_exist("/ root/images/mindi/mondorescue.iso")) {2959 if (does_file_exist("/var/cache/mindi/mondorescue.iso")) { 2960 2960 popup_and_OK 2961 ("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.");2961 ("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."); 2962 2962 res++; 2963 2963 } 2964 2964 } else { 2965 offer_to_write_floppies(bkpinfo, "/ root/images/mindi");2965 offer_to_write_floppies(bkpinfo, "/var/cache/mindi"); 2966 2966 mvaddstr_and_log_it(g_currentY++, 74, "Done."); 2967 2967 } -
branches/stable/mondo/src/common/libmondo-filelist.c
r1015 r1044 1748 1748 sprintf(exclude_paths, " %s %s %s %s %s %s . .. \ 1749 1749 " MNT_CDROM " " MNT_FLOPPY " /media/cdrom /media/cdrecorder \ 1750 /proc /sys / root/images/mondo /root/images/mindi ", excp, call_program_and_get_last_line_of_output("locate /win386.swp 2> /dev/null"), call_program_and_get_last_line_of_output("locate /hiberfil.sys 2> /dev/null"), call_program_and_get_last_line_of_output("locate /pagefile.sys 2> /dev/null"), (tmpdir[0] == '/' && tmpdir[1] == '/') ? (tmpdir + 1) : tmpdir, (scratchdir[0] == '/' && scratchdir[1] == '/') ? (scratchdir + 1) : scratchdir);1750 /proc /sys /tmp /root/images/mondo /var/cache/mindi ", excp, call_program_and_get_last_line_of_output("locate /win386.swp 2> /dev/null"), call_program_and_get_last_line_of_output("locate /hiberfil.sys 2> /dev/null"), call_program_and_get_last_line_of_output("locate /pagefile.sys 2> /dev/null"), (tmpdir[0] == '/' && tmpdir[1] == '/') ? (tmpdir + 1) : tmpdir, (scratchdir[0] == '/' && scratchdir[1] == '/') ? (scratchdir + 1) : scratchdir); 1751 1751 1752 1752 log_msg(2, "Excluding paths = '%s'", exclude_paths); -
branches/stable/mondo/src/common/libmondo-tools.c
r998 r1044 1087 1087 #endif 1088 1088 1089 if ((Lres = free_space_on_given_partition("/root")) == -1) { 1090 Lres = free_space_on_given_partition("/"); 1091 } 1089 Lres = free_space_on_given_partition("/var/cache"); 1092 1090 log_it("Free space on given partition = %ld MB", Lres); 1093 1091 1094 1092 if (Lres < 50) { 1095 run_program_and_log_output 1096 ("rm -Rf /root/images/mindi; mkdir -p /home/root/images/mindi; mkdir -p /root/images; ln -sf /home/root/images/mindi /root/images/mindi", 1097 3); 1098 // fatal_error("Your / (or /root) partition has <50MB free. Please adjust your partition table to something saner."); 1093 fatal_error("Your /var/cache partition has <50MB free. Please adjust your partition table to something saner."); 1099 1094 } 1100 1095 -
branches/stable/mondo/src/mondoarchive/main.c
r948 r1044 498 498 } 499 499 500 if (does_file_exist("/ root/images/mindi/mondorescue.iso")) {500 if (does_file_exist("/var/cache/mindi/mondorescue.iso")) { 501 501 log_to_screen 502 ("/ root/images/mindi/mondorescue.iso, a boot/utility CD, is available if you want it.");502 ("/var/cache/mindi/mondorescue.iso, a boot/utility CD, is available if you want it."); 503 503 } 504 504
Note:
See TracChangeset
for help on using the changeset viewer.