Changeset 1708 in MondoRescue
- Timestamp:
- Oct 27, 2007, 4:42:34 PM (17 years ago)
- Location:
- branches/2.2.5
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.5/mindi/install.sh
r1698 r1708 72 72 73 73 echo "Copying files ..." 74 install -m 644 isolinux.cfg msg-txt sys-disk.raw.gz isolinux-H.cfg syslinux.cfg syslinux-H.cfg dev.tgz $ locallib/mindi74 install -m 644 isolinux.cfg msg-txt sys-disk.raw.gz isolinux-H.cfg syslinux.cfg syslinux-H.cfg dev.tgz $sublocallib 75 75 install -m 644 deplist.txt $conf 76 76 -
branches/2.2.5/mondo/src/common/libmondo-archive.c
r1703 r1708 1335 1335 "Writing any remaining data to media "); 1336 1336 1337 log_msg(1, "Closing tape/CD ... ");1338 if (IS_THIS_A_STREAMING_BACKUP(bkpinfo->backup_media_type)) 1337 log_msg(1, "Closing tape/CD/USB ... "); 1338 if (IS_THIS_A_STREAMING_BACKUP(bkpinfo->backup_media_type)) { 1339 1339 /* write tape/cdstream */ 1340 {1341 1340 closeout_tape(); 1342 } else 1341 } else { 1343 1342 /* write final ISO/USB */ 1344 {1345 1343 res = write_final_iso_if_necessary(); 1346 1344 retval += res; … … 1424 1422 write_data_disks_to_stream(data_disks_file); 1425 1423 } else { 1426 log_msg(1, "Backing up to CD's"); 1424 if (bkpinfo->backup_media_type == usb) { 1425 log_msg(1, "Backing up to USB's"); 1426 } else { 1427 log_msg(1, "Backing up to CD's"); 1428 } 1427 1429 } 1428 1430 -
branches/2.2.5/mondo/src/common/libmondo-devices.c
r1687 r1708 258 258 259 259 extern bool g_ISO_restore_mode; 260 extern char *g_erase_tmpdir_and_scratchdir;261 260 extern char *g_selfmounted_isodir; 262 261 extern char *MONDO_LOGFILE; -
branches/2.2.5/mondo/src/common/libmondo-tools.c
r1666 r1708 191 191 192 192 extern int g_tape_buffer_size_MB; 193 extern char *g_erase_tmpdir_and_scratchdir;194 193 extern char *g_serial_string; 195 194 extern bool g_text_mode; … … 1622 1621 malloc_string(g_mondo_home); 1623 1622 malloc_string(g_tmpfs_mountpt); 1624 malloc_string(g_erase_tmpdir_and_scratchdir);1625 1623 malloc_string(g_serial_string); 1626 1624 malloc_string(g_magicdev_command); … … 1629 1627 paranoid_free(g_mondo_home); 1630 1628 paranoid_free(g_tmpfs_mountpt); 1631 paranoid_free(g_erase_tmpdir_and_scratchdir);1632 1629 paranoid_free(g_serial_string); 1633 1630 paranoid_free(g_magicdev_command); … … 1639 1636 &g_mondo_home, 1640 1637 &g_tmpfs_mountpt, 1641 &g_erase_tmpdir_and_scratchdir,1642 1638 &g_serial_string, 1643 1639 &g_magicdev_command, -
branches/2.2.5/mondo/src/common/newt-specific.c
r1703 r1708 191 191 g_xmondo_stdout[MAX_NEWT_COMMENT_LEN]; ///< .... @bug Unneeded w/current XMondo. 192 192 bool g_called_by_xmondo = FALSE; ///< @bug Unneeded w/current XMondo. 193 char *g_erase_tmpdir_and_scratchdir; ///< The command to run to erase the tmpdir and scratchdir at the end of Mondo.194 193 char *g_selfmounted_isodir; ///< Holds the NFS mountpoint if mounted via mondoarchive. 195 194 … … 420 419 } 421 420 422 if (g_erase_tmpdir_and_scratchdir[0]) {423 run_program_and_log_output(g_erase_tmpdir_and_scratchdir, 5);424 }425 426 421 if (g_selfmounted_isodir) { 427 422 sprintf(command, "umount %s", g_selfmounted_isodir); … … 470 465 void 471 466 finish(int signal) { 472 char *command; 473 malloc_string(command); 467 char *command = NULL; 474 468 475 469 /* if (signal==0) { popup_and_OK("Please press <enter> to quit."); } */ … … 483 477 FALSE); 484 478 if (g_selfmounted_isodir) { 485 sprintf(command, "umount %s", g_selfmounted_isodir);479 asprintf(&command, "umount %s", g_selfmounted_isodir); 486 480 run_program_and_log_output(command, 1); 487 sprintf(command, "rmdir %s", g_selfmounted_isodir); 481 paranoid_free(command); 482 asprintf(&command, "rmdir %s", g_selfmounted_isodir); 488 483 run_program_and_log_output(command, 1); 484 paranoid_free(command); 489 485 } 490 486 if (!g_text_mode) { … … 499 495 printf("Execution run ended; result=%d\n", signal); 500 496 printf("Type 'less %s' to see the output log\n", MONDO_LOGFILE); 501 if (g_erase_tmpdir_and_scratchdir) { 502 system(g_erase_tmpdir_and_scratchdir); 503 } 497 asprintf(&command, "rm -Rf %s %s", bkpinfo->tmpdir, bkpinfo->scratchdir); 498 system(command); 504 499 paranoid_free(command); 505 500 paranoid_free(bkpinfo); -
branches/2.2.5/mondo/src/mondoarchive/main.c
r1703 r1708 133 133 extern char *g_mondo_home; 134 134 extern char *g_tmpfs_mountpt; 135 extern char *g_erase_tmpdir_and_scratchdir;136 135 extern char *g_cdrw_drive_is_here; 137 136 static char *g_cdrom_drive_is_here = NULL; … … 459 458 log_to_screen 460 459 ("BusyBox's sources are available from http://www.busybox.net"); 461 sprintf(g_erase_tmpdir_and_scratchdir, "rm -Rf %s %s", bkpinfo->tmpdir,462 bkpinfo->scratchdir);463 460 464 461 /* If we're meant to backup then backup */ … … 556 553 log_msg(0, "Time finished: %s", mr_date()); 557 554 558 chdir("/tmp"); // just in case there's something wrong with g_erase_tmpdir_and_scratchdir555 chdir("/tmp"); 559 556 560 557 if (!g_text_mode) {
Note:
See TracChangeset
for help on using the changeset viewer.