Ignore:
Timestamp:
Mar 10, 2024, 7:23:12 PM (4 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/mondorestore/mondo-rstr-tools.c

    r3882 r3885  
    19211921
    19221922/**
    1923  * Install ELILO on the user's boot drive (determined by elilo.conf).
    1924  * @param offer_to_run_stabelilo If TRUE, then offer to hack the user's fstab for them.
    1925  * @return 0 for success, nonzero for failure.
    1926  */
    1927 int run_elilo(bool offer_to_run_stabelilo)
    1928 {
    1929   /** malloc **/
    1930     char *command = NULL;
    1931     char *tmp = NULL;
    1932     char *editor = NULL;
    1933 
    1934     int res;
    1935     int done;
    1936 
    1937     if (offer_to_run_stabelilo
    1938         && ask_me_yes_or_no("Did you change the mountlist or cloned the system ?"))
    1939 
    1940         /* interactive mode */
    1941     {
    1942         mvaddstr_and_log_it(g_currentY,
    1943                             0,
    1944                             "Modifying fstab and elilo.conf...                             ");
    1945         mr_asprintf(command, "mr-stabelilo-me");
    1946         res = run_program_and_log_output(command, 3);
    1947         mr_free(command);
    1948 
    1949         if (res) {
    1950             popup_and_OK("You will now edit fstab and elilo.conf, to make sure they match your new mountlist.");
    1951             for (done = FALSE; !done;) {
    1952                 editor = find_my_editor();
    1953                 if (editor == NULL) {
    1954                     popup_and_OK("No editor found. You won't be able to edit conf files");
    1955                     done = TRUE;
    1956                 } else {
    1957 
    1958                     if (!g_text_mode) {
    1959                         newtSuspend();
    1960                     }
    1961                     mr_asprintf(tmp, "chroot %s %s /etc/fstab", MNT_RESTORING, editor);
    1962                     paranoid_system(tmp);
    1963                     mr_free(tmp);
    1964    
    1965                     mr_asprintf(tmp, "chroot %s %s /etc/elilo.conf", MNT_RESTORING, editor);
    1966                     paranoid_system(tmp);
    1967                     mr_free(tmp);
    1968                     mr_free(editor);
    1969 
    1970                     if (!g_text_mode) {
    1971                         newtResume();
    1972                     }
    1973 //              newtCls();
    1974                     if (ask_me_yes_or_no("Edit them again?")) {
    1975                         continue;
    1976                     }
    1977                     done = TRUE;
    1978                 }
    1979                 mr_free(editor);
    1980             }
    1981         } else {
    1982             log_to_screen("elilo.conf and fstab were modified OK");
    1983         }
    1984     } else
    1985         /* nuke mode */
    1986     {
    1987         res = TRUE;
    1988     }
    1989     return (res);
    1990 }
    1991 
    1992 /**************************************************************************
    1993  *END_RUN_ELILO                                                            *
    1994  **************************************************************************/
    1995 
    1996 
    1997 
    1998 /**
    19991923 * Install the user's boot loader in the MBR.
    2000  * Currently LILO, ELILO, GRUB, RAW (dd of MBR), and the FreeBSD bootloader are supported.
     1924 * Currently LILO, GRUB, RAW (dd of MBR), and the FreeBSD bootloader are supported.
    20011925 * @param offer_to_hack_scripts If TRUE, then offer to hack the user's fstab for them.
    20021926 * @return 0 for success, nonzero for failure.
     
    20311955    backup_crucial_file(MNT_RESTORING, "/boot/grub2/grub.cfg");
    20321956    backup_crucial_file(MNT_RESTORING, "/etc/lilo.conf");
    2033     backup_crucial_file(MNT_RESTORING, "/etc/elilo.conf");
    20341957    backup_crucial_file(MNT_RESTORING, "/boot/grub/device.map");
    20351958    backup_crucial_file(MNT_RESTORING, "/boot/grub2/device.map");
     
    20581981    if (!strcmp(name, "LILO")) {
    20591982        res = run_lilo(offer_to_hack_scripts);
    2060     } else if (!strcmp(name, "ELILO")) {
    2061         res = run_elilo(offer_to_hack_scripts);
    20621983    } else if (!strcmp(name, "GRUB")) {
    20631984        res = run_grub(offer_to_hack_scripts, device);
Note: See TracChangeset for help on using the changeset viewer.