Changeset 3885 in MondoRescue for branches/3.3/mondo/src/common/libmondo-archive.c
- Timestamp:
- Mar 10, 2024, 7:23:12 PM (3 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.3/mondo/src/common/libmondo-archive.c
r3883 r3885 854 854 if (bkpinfo->make_cd_use_lilo) { 855 855 log_msg(1, "make_cd_use_lilo = TRUE"); 856 #ifdef __IA64__857 log_msg(1, "IA64 --> elilo");858 mr_asprintf(full_isofs_cmd, "%s%s-o '_ISO_' .",isofs_cmd,MONDO_MKISOFS_REGULAR_ELILO);859 res = eval_call_to_make_ISO(full_isofs_cmd, destfile, g_current_media_number, message_to_screen);860 mr_free(full_isofs_cmd);861 #else862 log_msg(1, "Non-ia64 --> lilo");863 856 mr_asprintf(full_isofs_cmd, "%s%s-b images/mindi-bootroot.img -c images/boot.cat -o '_ISO_' .",isofs_cmd,MONDO_MKISOFS); 864 857 // FIXME: fixed boot size probably wrong. lilo to be removed 865 858 res = eval_call_to_make_ISO(full_isofs_cmd, destfile, g_current_media_number, message_to_screen); 866 859 mr_free(full_isofs_cmd); 867 #endif868 860 } else { 869 861 log_msg(1, "make_cd_use_lilo = FALSE"); … … 2589 2581 char *cd_recovery_sz = NULL; 2590 2582 char *tape_size_sz = NULL; 2591 char *use_lilo_sz = NULL; /* TODO: shared between LILO/ELILO */2583 char *use_lilo_sz = NULL; 2592 2584 char *value = NULL; 2593 2585 char *bootdev = NULL; … … 2701 2693 #else 2702 2694 /* Linux */ 2703 #ifdef __IA64__2704 bootdev = call_program_and_get_last_line_of_output("mount | grep ' /boot/efi ' | head -1 | cut -d' ' -f1 | sed 's/[0-9].*//'");2705 #else2706 2695 bootdev = call_program_and_get_last_line_of_output("mount | grep ' /boot ' | head -1 | cut -d' ' -f1 | sed 's/[0-9].*//'"); 2707 #endif2708 2696 if (strstr(bootdev, "/dev/cciss/")) { 2709 2697 mr_free(bootdev); 2710 #ifdef __IA64__2711 bootdev = call_program_and_get_last_line_of_output("mount | grep ' /boot/efi ' | head -1 | cut -d' ' -f1 | cut -dp -f1");2712 #else2713 2698 bootdev = call_program_and_get_last_line_of_output("mount | grep ' /boot ' | head -1 | cut -d' ' -f1 | cut -dp -f1"); 2714 #endif2715 2699 } 2716 2700 if (!bootdev[0]) { … … 2745 2729 bkpinfo->boot_loader != 'B' && bkpinfo->boot_loader != 'D' && 2746 2730 #endif 2747 #ifdef __IA64__2748 bkpinfo->boot_loader != 'E' &&2749 #endif2750 2731 bkpinfo->boot_loader != 'L' && bkpinfo->boot_loader != 'G' && bkpinfo->boot_loader != 'R') { 2751 2732 fatal_error("Please specify your boot loader and device, e.g. -l GRUB -f /dev/hda. Type 'man mondoarchive' to read the manual."); … … 2775 2756 mr_free(bootldr_ver); 2776 2757 bootldr_ver = call_program_and_get_last_line_of_output("grub2-install --version"); 2777 }2778 } else if (bkpinfo->boot_loader == 'E') {2779 mr_asprintf(bootldr_str, "ELILO");2780 /* TODO: fix it for Debian, Mageia, ... */2781 if (!does_file_exist("/etc/elilo.conf") && does_file_exist("/boot/efi/efi/redhat/elilo.conf")) {2782 run_program_and_log_output("ln -sf /boot/efi/efi/redhat/elilo.conf /etc/elilo.conf", 5);2783 }2784 if (!does_file_exist("/etc/elilo.conf") && does_file_exist("/boot/efi/efi/SuSE/elilo.conf")) {2785 run_program_and_log_output("ln -sf /boot/efi/efi/SuSE/elilo.conf /etc/elilo.conf", 5);2786 }2787 if (!does_file_exist("/etc/elilo.conf") && does_file_exist("/boot/efi/efi/debian/elilo.conf")) {2788 run_program_and_log_output ("ln -sf /boot/efi/efi/debian/elilo.conf /etc/elilo.conf", 5);2789 }2790 if (!does_file_exist("/etc/elilo.conf") && does_file_exist("/boot/efi/debian/elilo.conf")) {2791 run_program_and_log_output ("ln -sf /boot/efi/debian/elilo.conf /etc/elilo.conf", 5);2792 }2793 if (!does_file_exist("/etc/elilo.conf")) {2794 mr_free(bootldr_str);2795 fatal_error("The de facto mondo standard location for your boot loader's config file is /etc/elilo.conf but I cannot find it there. What is wrong with your Linux distribution? Try finding it under /boot/efi and do 'ln -s /boot/efi/..../elilo.conf /etc/elilo.conf'");2796 2758 } 2797 2759 } else if (bkpinfo->boot_loader == 'R') {
Note:
See TracChangeset
for help on using the changeset viewer.