Changeset 2328 in MondoRescue for branches/2.2.10/mondo/src/common/libmondo-archive.c
- Timestamp:
- Aug 18, 2009, 3:20:42 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.10/mondo/src/common/libmondo-archive.c
r2327 r2328 438 438 copy_mondo_and_mindi_stuff_to_scratchdir(); // payload, too, if it exists 439 439 #if __FreeBSD__ == 5 440 strcpy(bkpinfo->kernel_path, "/boot/kernel/kernel");440 mr_asprintf(bkpinfo->kernel_path, "/boot/kernel/kernel"); 441 441 #elif __FreeBSD__ == 4 442 strcpy(bkpinfo->kernel_path, "/kernel");442 mr_asprintf(bkpinfo->kernel_path, "/kernel"); 443 443 #elif linux 444 if (figure_out_kernel_path_interactively_if_necessary 445 (bkpinfo->kernel_path)) { 446 fatal_error 447 ("Kernel not found. Please specify manually with the '-k' switch."); 444 if (figure_out_kernel_path_interactively_if_necessary(bkpinfo->kernel_path)) { 445 fatal_error("Kernel not found. Please specify manually with the '-k' switch."); 448 446 } 449 447 #else … … 1661 1659 chdir(bkpinfo->scratchdir); 1662 1660 1663 if (bkpinfo->call_before_iso [0] != '\0') {1661 if (bkpinfo->call_before_iso) { 1664 1662 mr_asprintf(message_to_screen, "Running pre-ISO call for CD#%d", g_current_media_number); 1665 1663 res = eval_call_to_make_ISO(bkpinfo->call_before_iso, destfile, g_current_media_number, MONDO_LOGFILE, message_to_screen); … … 1675 1673 } 1676 1674 1677 if (bkpinfo->call_make_iso [0] != '\0') {1675 if (bkpinfo->call_make_iso) { 1678 1676 log_msg(2, "bkpinfo->call_make_iso = %s", bkpinfo->call_make_iso); 1679 1677 mds = media_descriptor_string(bkpinfo->backup_media_type); … … 1747 1745 } 1748 1746 pause_for_N_seconds(5, "Letting DVD drive settle"); 1749 res = 1750 eval_call_to_make_ISO(bkpinfo->call_make_iso, bkpinfo->scratchdir, g_current_media_number, MONDO_LOGFILE, message_to_screen); 1747 res = eval_call_to_make_ISO(bkpinfo->call_make_iso, bkpinfo->scratchdir, g_current_media_number, MONDO_LOGFILE, message_to_screen); 1751 1748 retval += res; 1752 1749 if (!bkpinfo->please_dont_eject) { … … 1846 1843 } 1847 1844 1848 if (bkpinfo->call_burn_iso [0] != '\0') {1845 if (bkpinfo->call_burn_iso) { 1849 1846 log_msg(2, "bkpinfo->call_burn_iso = %s", bkpinfo->call_burn_iso); 1850 1847 mds = media_descriptor_string(bkpinfo->backup_media_type); … … 1852 1849 mr_free(mds); 1853 1850 pause_and_ask_for_cdr(2, &cd_is_mountable); 1854 res = 1855 eval_call_to_make_ISO(bkpinfo->call_burn_iso, 1856 destfile, g_current_media_number, 1857 MONDO_LOGFILE, message_to_screen); 1851 res = eval_call_to_make_ISO(bkpinfo->call_burn_iso, destfile, g_current_media_number, MONDO_LOGFILE, message_to_screen); 1858 1852 if (res) { 1859 1853 mr_strcat(message_to_screen, "...failed"); … … 1867 1861 } 1868 1862 1869 if (bkpinfo->call_after_iso [0] != '\0') {1863 if (bkpinfo->call_after_iso) { 1870 1864 mds = media_descriptor_string(bkpinfo->backup_media_type); 1871 1865 mr_asprintf(message_to_screen, "Running post-ISO call (%s #%d)", mds, g_current_media_number); 1872 1866 mr_free(mds); 1873 res = 1874 eval_call_to_make_ISO(bkpinfo->call_after_iso, 1875 destfile, g_current_media_number, 1876 MONDO_LOGFILE, message_to_screen); 1867 res = eval_call_to_make_ISO(bkpinfo->call_after_iso, destfile, g_current_media_number, MONDO_LOGFILE, message_to_screen); 1877 1868 if (res) { 1878 1869 mr_strcat(message_to_screen, "...failed");
Note:
See TracChangeset
for help on using the changeset viewer.