Changeset 2383 in MondoRescue for branches/2.2.10/mondo/src/mondorestore/mondo-prep.c
- Timestamp:
- Sep 10, 2009, 2:55:51 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.10/mondo/src/mondorestore/mondo-prep.c
r2376 r2383 336 336 if (lvmversion == 2) { 337 337 mr_asprintf(tmp1, "tail -n5 %s | grep Insufficient | tail -n1", MONDO_LOGFILE); 338 mr_asprintf(tmp, "%s", call_program_and_get_last_line_of_output(tmp1));338 tmp = call_program_and_get_last_line_of_output(tmp1); 339 339 mr_free(tmp1); 340 340 } else { 341 341 mr_asprintf(tmp1, "tail -n5 %s | grep lvcreate | tail -n1", MONDO_LOGFILE); 342 mr_asprintf(tmp, "%s", call_program_and_get_last_line_of_output(tmp1));342 tmp = call_program_and_get_last_line_of_output(tmp1); 343 343 mr_free(tmp1); 344 344 } … … 1414 1414 char *format = NULL; 1415 1415 char *tmp = NULL; 1416 char *tmp1 = NULL; 1416 1417 1417 1418 /** end *************************************************************/ … … 1578 1579 if (pout_to_fdisk) { 1579 1580 // mark relevant partition as bootable 1580 mr_asprintf(tmp, "a\n%s\n", call_program_and_get_last_line_of_output ("make-me-bootable /tmp/mountlist.txt dummy")); 1581 tmp1 = call_program_and_get_last_line_of_output ("make-me-bootable /tmp/mountlist.txt dummy"); 1582 mr_asprintf(tmp, "a\n%s\n", tmp1); 1583 mr_free(tmp1); 1584 1581 1585 fput_string_one_char_at_a_time(pout_to_fdisk, tmp); 1582 1586 mr_free(tmp);
Note:
See TracChangeset
for help on using the changeset viewer.