Changeset 687 in MondoRescue for trunk/mondo/mondo/common/libmondo-tools.c
- Timestamp:
- Jul 17, 2006, 3:39:42 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/mondo/mondo/common/libmondo-tools.c
r672 r687 362 362 assert(bkpinfo != NULL); 363 363 bkpinfo->optimal_set_size = 364 (IS_THIS_A_STREAMING_BACKUP(bkpinfo->backup_media_type) ? 4 : 8) *364 (IS_THIS_A_STREAMING_BACKUP(bkpinfo->backup_media_type) ? 16 : 16) * 365 365 1024; 366 366 … … 382 382 383 383 run_program_and_log_output("uname -a", 5); 384 run_program_and_log_output("cat /etc/*-release", 5); 384 385 run_program_and_log_output("cat /etc/*issue*", 5); 385 386 asprintf(&g_tmpfs_mountpt, "%s/tmpfs", bkpinfo->tmpdir); … … 475 476 paranoid_free(mondo_mkisofs_sz); 476 477 477 if (getenv("SUDO_COMMAND")) { 478 fatal_error 479 ("Can't write DVDs as sudo because growisofs doesn't support this - please see the growisofs manpage for details."); 478 if (getenv ("SUDO_COMMAND")) { 479 asprintf(&command, "strings `which growisofs` | grep -c SUDO_COMMAND"); 480 if (!strcmp(call_program_and_get_last_line_of_output(command), "1")) { 481 popup_and_OK("Fatal Error: Can't write DVDs as sudo because growisofs doesn't support this - see the growisofs manpage for details."); 482 fatal_error("Can't write DVDs as sudo because growisofs doesn't support this - see the growisofs manpage for details."); 483 } 484 paranoid_free(command); 480 485 } 481 486 log_msg(2, "call_make_iso (DVD res) is ... %s", … … 894 899 // abort if Windows partition but no ms-sys and parted 895 900 if (!run_program_and_log_output 896 ("mount | grep -w vfat | grep -v /dev/fd | grep -v nexdisk", 0)901 ("mount | grep -w vfat | grep -vE \"/dev/fd|nexdisk\"", 0) 897 902 || 898 903 !run_program_and_log_output 899 ("mount | grep -w dos | grep -v /dev/fd | grep -v nexdisk", 0)) {904 ("mount | grep -w dos | grep -vE \"/dev/fd|nexdisk\"", 0)) { 900 905 log_to_screen(_("I think you have a Windows 9x partition.")); 901 906 retval += whine_if_not_found("parted");
Note:
See TracChangeset
for help on using the changeset viewer.