Ignore:
Timestamp:
Mar 10, 2024, 7:23:12 PM (3 months ago)
Author:
Bruno Cornec
Message:

Removes support for ia64 depracated in upstream kernel, and elilo

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.3/mondo/src/common/libmondo-archive.c

    r3883 r3885  
    854854        if (bkpinfo->make_cd_use_lilo) {
    855855            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 #else
    862             log_msg(1, "Non-ia64 --> lilo");
    863856            mr_asprintf(full_isofs_cmd, "%s%s-b images/mindi-bootroot.img -c images/boot.cat -o '_ISO_' .",isofs_cmd,MONDO_MKISOFS);
    864857            // FIXME: fixed boot size probably wrong. lilo to be removed
    865858            res = eval_call_to_make_ISO(full_isofs_cmd, destfile, g_current_media_number, message_to_screen);
    866859            mr_free(full_isofs_cmd);
    867 #endif
    868860        } else {
    869861            log_msg(1, "make_cd_use_lilo = FALSE");
     
    25892581    char *cd_recovery_sz = NULL;
    25902582    char *tape_size_sz = NULL;
    2591     char *use_lilo_sz = NULL;   /* TODO: shared between LILO/ELILO */
     2583    char *use_lilo_sz = NULL;
    25922584    char *value = NULL;
    25932585    char *bootdev = NULL;
     
    27012693#else
    27022694        /* 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 #else
    27062695        bootdev = call_program_and_get_last_line_of_output("mount | grep ' /boot ' | head -1 | cut -d' ' -f1 | sed 's/[0-9].*//'");
    2707 #endif
    27082696        if (strstr(bootdev, "/dev/cciss/")) {
    27092697            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 #else
    27132698            bootdev = call_program_and_get_last_line_of_output("mount | grep ' /boot ' | head -1 | cut -d' ' -f1 | cut -dp -f1");
    2714 #endif
    27152699        }
    27162700        if (!bootdev[0]) {
     
    27452729           bkpinfo->boot_loader != 'B' && bkpinfo->boot_loader != 'D' &&
    27462730#endif
    2747 #ifdef __IA64__
    2748            bkpinfo->boot_loader != 'E' &&
    2749 #endif
    27502731           bkpinfo->boot_loader != 'L' && bkpinfo->boot_loader != 'G' && bkpinfo->boot_loader != 'R') {
    27512732        fatal_error("Please specify your boot loader and device, e.g. -l GRUB -f /dev/hda. Type 'man mondoarchive' to read the manual.");
     
    27752756            mr_free(bootldr_ver);
    27762757            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'");
    27962758        }
    27972759    } else if (bkpinfo->boot_loader == 'R') {
Note: See TracChangeset for help on using the changeset viewer.