Changeset 2704 in MondoRescue for branches/2.2.10/mondo/src/mondorestore
- Timestamp:
- Jan 27, 2011, 7:31:24 PM (13 years ago)
- Location:
- branches/2.2.10/mondo/src/mondorestore
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.10/mondo/src/mondorestore/mondo-prep.c
r2623 r2704 213 213 #endif 214 214 215 tmp = call_program_and_get_last_line_of_output("cat "CMDLINE );215 tmp = call_program_and_get_last_line_of_output("cat "CMDLINE,TRUE); 216 216 if (strstr(tmp, "nolvm")) { 217 217 mr_free(tmp); … … 336 336 if (lvmversion == 2) { 337 337 mr_asprintf(tmp1, "tail -n5 %s | grep Insufficient | tail -n1", MONDO_LOGFILE); 338 tmp = call_program_and_get_last_line_of_output(tmp1 );338 tmp = call_program_and_get_last_line_of_output(tmp1,TRUE); 339 339 mr_free(tmp1); 340 340 } else { 341 341 mr_asprintf(tmp1, "tail -n5 %s | grep lvcreate | tail -n1", MONDO_LOGFILE); 342 tmp = call_program_and_get_last_line_of_output(tmp1 );342 tmp = call_program_and_get_last_line_of_output(tmp1,TRUE); 343 343 mr_free(tmp1); 344 344 } … … 1579 1579 if (pout_to_fdisk) { 1580 1580 // mark relevant partition as bootable 1581 tmp1 = call_program_and_get_last_line_of_output ("make-me-bootable "MINDI_CACHE"/mountlist.txt dummy" );1581 tmp1 = call_program_and_get_last_line_of_output ("make-me-bootable "MINDI_CACHE"/mountlist.txt dummy",TRUE); 1582 1582 mr_asprintf(tmp, "a\n%s\n", tmp1); 1583 1583 mr_free(tmp1); -
branches/2.2.10/mondo/src/mondorestore/mondo-rstr-compare.c
r2623 r2704 631 631 /** needs malloc **/ 632 632 char *dir; 633 char *command = NULL;634 633 635 634 assert(bkpinfo != NULL); … … 683 682 int res; 684 683 char *dir; 685 char *command = NULL;686 684 687 685 assert(bkpinfo != NULL); -
branches/2.2.10/mondo/src/mondorestore/mondo-rstr-tools.c
r2696 r2704 719 719 mr_free(value); 720 720 721 tmp = call_program_and_get_last_line_of_output("cat " CMDLINE );721 tmp = call_program_and_get_last_line_of_output("cat " CMDLINE,TRUE); 722 722 if (strstr(tmp, "pxe")) { 723 723 /* We need to override prefix value in PXE mode as it's … … 904 904 905 905 tmp = read_cfg_var(MINDI_CACHE"/mondorestore.cfg", "please-dont-eject"); 906 tmp1 = call_program_and_get_last_line_of_output("cat " CMDLINE );906 tmp1 = call_program_and_get_last_line_of_output("cat " CMDLINE,TRUE); 907 907 if (tmp || strstr(tmp1, "donteject")) { 908 908 bkpinfo->please_dont_eject = TRUE; … … 938 938 } 939 939 } 940 tmp1 = call_program_and_get_last_line_of_output("cat " CMDLINE );940 tmp1 = call_program_and_get_last_line_of_output("cat " CMDLINE,TRUE); 941 941 if (strstr(tmp1, "pxe")) { 942 942 mr_free(tmp1); … … 997 997 mr_asprintf(command, "mount | grep -E '^%s' | tail -n1 | cut -d' ' -f3", g_isodir_device); 998 998 log_it("command = %s", command); 999 iso_mnt = call_program_and_get_last_line_of_output(command );999 iso_mnt = call_program_and_get_last_line_of_output(command,TRUE); 1000 1000 log_it("res of it = %s", iso_mnt); 1001 1001 mr_free(command); -
branches/2.2.10/mondo/src/mondorestore/mondorestore.c
r2696 r2704 448 448 log_it("Done loading config file; resizing ML"); 449 449 450 tmp1 = call_program_and_get_last_line_of_output("cat " CMDLINE );450 tmp1 = call_program_and_get_last_line_of_output("cat " CMDLINE,TRUE); 451 451 if (strstr(tmp1, "noresize")) { 452 452 log_msg(1, "Not resizing mountlist."); … … 742 742 load_mountlist(mountlist, MINDI_CACHE"/mountlist.txt"); // in case read_cfg_file_into_bkpinfo updated the mountlist 743 743 744 tmp = call_program_and_get_last_line_of_output("cat " CMDLINE );744 tmp = call_program_and_get_last_line_of_output("cat " CMDLINE,TRUE); 745 745 if (strstr(tmp, "noresize")) { 746 746 log_msg(2, "Not resizing mountlist."); … … 777 777 twenty_seconds_til_yikes(); 778 778 g_fprep = fopen("/tmp/prep.sh", "w"); 779 tmp = call_program_and_get_last_line_of_output("cat " CMDLINE );779 tmp = call_program_and_get_last_line_of_output("cat " CMDLINE,TRUE); 780 780 if (strstr(tmp, "nopart")) { 781 781 log_msg(2, "Not partitioning drives due to 'nopart' option."); … … 850 850 851 851 after_the_nuke: 852 tmp1 = call_program_and_get_last_line_of_output("cat " CMDLINE );852 tmp1 = call_program_and_get_last_line_of_output("cat " CMDLINE,TRUE); 853 853 if (retval) { 854 854 log_to_screen("Errors occurred during the nuke phase."); … … 2589 2589 /* Configure global variables */ 2590 2590 malloc_libmondo_global_strings(); 2591 tmp1 = call_program_and_get_last_line_of_output("cat " CMDLINE );2591 tmp1 = call_program_and_get_last_line_of_output("cat " CMDLINE,TRUE); 2592 2592 if (strstr(tmp1, "textonly")) { 2593 2593 g_text_mode = TRUE; … … 2601 2601 setup_newt_stuff(); /* call newtInit and setup screen log */ 2602 2602 2603 tmp1 = call_program_and_get_last_line_of_output("which mondorestore" );2603 tmp1 = call_program_and_get_last_line_of_output("which mondorestore",TRUE); 2604 2604 strcpy(g_mondo_home, tmp1); 2605 2605 mr_free(tmp1); -
branches/2.2.10/mondo/src/mondorestore/mr-externs.h
r2623 r2704 18 18 extern int closein_tape(); 19 19 extern void close_evalcall_form(void); 20 extern char *call_program_and_get_last_line_of_output(char * );20 extern char *call_program_and_get_last_line_of_output(char *,bool); 21 21 extern void close_progress_form(void); 22 22 extern long count_lines_in_file(char *);
Note:
See TracChangeset
for help on using the changeset viewer.