Changeset 2095 in MondoRescue for branches/2.2.8/mondo/src/common/libmondo-archive.c
- Timestamp:
- Dec 17, 2008, 5:26:31 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.8/mondo/src/common/libmondo-archive.c
r2030 r2095 724 724 } else if (bkpinfo->boot_loader == 'G') { 725 725 strcpy(bootldr_str, "GRUB"); 726 if (!does_file_exist("/ etc/grub.conf")726 if (!does_file_exist("/boot/grub/menu.lst") 727 727 && does_file_exist("/boot/grub/grub.conf")) { 728 728 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")) { 738 732 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?"); 740 734 } 741 735 } else if (bkpinfo->boot_loader == 'E') {
Note:
See TracChangeset
for help on using the changeset viewer.