Changeset 1671 in MondoRescue for branches/stable
- Timestamp:
- Oct 1, 2007, 2:12:54 PM (18 years ago)
- Location:
- branches/stable
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/stable/mindi/mindi
r1663 r1671 100 100 CDROM_MODS="$TAPE_MODS $IDE_MODS $mindi_cdrom_mods $USB_MODS $PCMCIA_MODS" 101 101 NET_MODS="$mindi_net_mods" 102 # BERLIOS: Handle the case where all is passed (cloning mode) 102 103 EXTRA_MODS="$CDROM_MODS $mindi_extra_mods $mindi_additional_mods" 103 104 DENY_MODS="$mindi_deny_mods" -
branches/stable/mondo-web/mondo-web.pl
r1581 r1671 97 97 'ELILO' => "ELILO (ia64)", 98 98 'RAW' => "RAW", 99 'BOOT0' => "BOOT0 (FreeBSD)", 100 'DD' => "DD (FreeBSD)", 99 101 'NATIVE' => "Autodetected", 100 102 ); -
branches/stable/mondo/distributions/conf/mondo.conf.dist
r1669 r1671 91 91 #mondorescue_kernel="/boot/vmlinuz.special" 92 92 93 # DONE94 93 # 95 94 # Additional modules to support … … 100 99 # 101 100 # Boot loader to use 102 # (GRUB|ELILO|LILO|RAW| NATIVE)101 # (GRUB|ELILO|LILO|RAW|BOOT0|DD|NATIVE) 103 102 # 104 103 mondo_boot_loader="NATIVE" 105 104 105 # DONE 106 106 # 107 107 # Differential backup or full (yes|no) -
branches/stable/mondo/src/common/libmondo-archive.c
r1669 r1671 558 558 559 559 assert(bkpinfo != NULL); 560 malloc_string(bootldr_str);561 560 malloc_string(last_filelist_number); 562 561 malloc_string(devs_to_exclude); … … 669 668 } 670 669 if (bkpinfo->boot_loader == 'L') { 671 strcpy(bootldr_str, "LILO");670 mr_asprintf(&bootldr_str, "LILO"); 672 671 if (!does_file_exist("/etc/lilo.conf")) { 673 672 fatal_error … … 675 674 } 676 675 } else if (bkpinfo->boot_loader == 'G') { 677 strcpy(bootldr_str, "GRUB");676 mr_asprintf(&bootldr_str, "GRUB"); 678 677 if (!does_file_exist("/etc/grub.conf") 679 678 && does_file_exist("/boot/grub/grub.conf")) { … … 692 691 } 693 692 } else if (bkpinfo->boot_loader == 'E') { 694 strcpy(bootldr_str, "ELILO");693 mr_asprintf(&bootldr_str, "ELILO"); 695 694 /* BERLIOS: fix it for Debian, Mandrake, ... */ 696 695 if (!does_file_exist("/etc/elilo.conf") … … 723 722 } 724 723 } else if (bkpinfo->boot_loader == 'R') { 725 strcpy(bootldr_str, "RAW");724 mr_asprintf(&bootldr_str, "RAW"); 726 725 } 727 726 #ifdef __FreeBSD__ 728 727 else if (bkpinfo->boot_loader == 'D') { 729 strcpy(bootldr_str, "DD");728 mr_asprintf(&bootldr_str, "DD"); 730 729 } 731 730 732 731 else if (bkpinfo->boot_loader == 'B') { 733 strcpy(bootldr_str, "BOOT0");732 mr_asprintf(&bootldr_str, "BOOT0"); 734 733 } 735 734 #endif 736 735 else { 737 strcpy(bootldr_str, "unknown");736 mr_asprintf(&bootldr_str, "unknown"); 738 737 } 739 738 mr_asprintf(&tmp, "Your boot loader is %s and it boots from %s", … … 768 767 } 769 768 mr_fprintf(fd, "mindi_kernel=%s\n", bkpinfo->kernel_path); 769 mr_fprintf(fd, "mindi_additional_mods=%s\n", mr_conf->additional_modules); 770 770 771 771 mr_fprintf(fd1, "files-in-filelist=%ld\n", lines_in_filelist); … … 777 777 mr_fprintf(fd1, "bootloader.name=%s\n", bootldr_str); 778 778 mr_fprintf(fd1, "bootloader.device=%s\n", bkpinfo->boot_device); 779 780 mr_free(bootldr_str); 779 781 780 782 switch (bkpinfo->backup_media_type) { … … 961 963 mr_free(tmp); 962 964 } 963 mr_free(bootldr_str);964 965 mr_free(last_filelist_number); 965 966 mr_free(devs_to_exclude); -
branches/stable/mondo/src/common/libmondo-tools.c
r1670 r1671 743 743 bkpinfo->kernel_path = tmp; 744 744 745 bkpinfo->boot_loader = '\0'; 745 if (strcmp(mr_conf->boot_loader,"LILO") == 0) { 746 bkpinfo->boot_loader = 'L'; 747 } else if (strcmp(mr_conf->boot_loader,"GRUB") == 0) { 748 bkpinfo->boot_loader = 'G'; 749 } else if (strcmp(mr_conf->boot_loader,"ELILO") == 0) { 750 bkpinfo->boot_loader = 'E'; 751 } else if (strcmp(mr_conf->boot_loader,"RAW") == 0) { 752 bkpinfo->boot_loader = 'R'; 753 } else if (strcmp(mr_conf->boot_loader,"DD") == 0) { 754 bkpinfo->boot_loader = 'D'; 755 } else if (strcmp(mr_conf->boot_loader,"BOOT0") == 0) { 756 bkpinfo->boot_loader = 'B'; 757 } else if (strcmp(mr_conf->boot_loader,"NATIVE") == 0) { 758 bkpinfo->boot_loader = '\0'; 759 } else{ 760 mr_msg("Boot Loader %s unknown\n",mr_conf->boot_loader); 761 fatal_error("Unknown Boot Loader in conf file"); 762 } 746 763 bkpinfo->boot_device[0] = '\0'; 747 764 bkpinfo->zip_exe[0] = '\0';
Note:
See TracChangeset
for help on using the changeset viewer.