Changeset 2095 in MondoRescue for branches/2.2.8/mondo/src/common


Ignore:
Timestamp:
Dec 17, 2008, 5:26:31 PM (15 years ago)
Author:
Bruno Cornec
Message:

Use /boot/grub/menu.lst everywhere instead of meesing up with /etc/grub.conf

File:
1 edited

Legend:

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

    r2030 r2095  
    724724    } else if (bkpinfo->boot_loader == 'G') {
    725725        strcpy(bootldr_str, "GRUB");
    726         if (!does_file_exist("/etc/grub.conf")
     726        if (!does_file_exist("/boot/grub/menu.lst")
    727727            && does_file_exist("/boot/grub/grub.conf")) {
    728728            run_program_and_log_output
    729                 ("ln -sf /boot/grub/grub.conf /etc/grub.conf", 5);
    730         }
    731         /* Detect Debian's grub config file */
    732         else if (!does_file_exist("/etc/grub.conf")
    733                  && does_file_exist("/boot/grub/menu.lst")) {
    734             run_program_and_log_output
    735                 ("ln -s /boot/grub/menu.lst /etc/grub.conf", 5);
    736         }
    737         if (!does_file_exist("/etc/grub.conf")) {
     729                ("ln -sf /boot/grub/grub.conf /boot/grub/menu.lst", 5);
     730        }
     731        if (!does_file_exist("/boot/grub/menu.lst")) {
    738732            fatal_error
    739                 ("The de facto standard location for your boot loader's config file is /etc/grub.conf but I cannot find it there. What is wrong with your Linux distribution? Try 'ln -s /boot/grub/menu.lst /etc/grub.conf'...");
     733                ("The de facto standard location for your boot loader's config file is /boot/grub/menu.lst but I cannot find it there. What is wrong with your Linux distribution?");
    740734        }
    741735    } else if (bkpinfo->boot_loader == 'E') {
Note: See TracChangeset for help on using the changeset viewer.