Changeset 2944 in MondoRescue for branches/3.0/mondo/src/common


Ignore:
Timestamp:
Feb 3, 2012, 2:12:47 AM (12 years ago)
Author:
Bruno Cornec
Message:
  • Adds grub2 support (Michael Caerwyn mcaerwyn_at_gmail.com)
Location:
branches/3.0/mondo/src/common
Files:
2 edited

Legend:

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

    r2931 r2944  
    701701                ("ln -sf /boot/grub/grub.conf /boot/grub/menu.lst", 5);
    702702        }
    703         if ((!does_file_exist("/boot/grub/menu.lst")) && (!does_file_exist("/boot/grub/grub.cfg"))) {
     703        if ((!does_file_exist("/boot/grub/menu.lst")) && (!does_file_exist("/boot/grub/grub.cfg")) && (!does_file_exist("/boot/grub2/grub.cfg"))) {
    704704            fatal_error
    705                 ("The de facto standard location for your boot loader's config file is /boot/grub/menu.lst or /boot/grub/grub.cfg but I cannot find it there. What is wrong with your Linux distribution?");
     705                ("The de facto standard location for your boot loader's config file is /boot/grub/menu.lst, /boot/grub/grub.cfg, or /boot/grub2/grub.cfg but I cannot find it there. What is wrong with your Linux distribution?");
    706706        }
    707707    } else if (bkpinfo->boot_loader == 'E') {
  • branches/3.0/mondo/src/common/libmondo-mountlist.c

    r2918 r2944  
    949949    }
    950950    paranoid_fclose(fout);
     951    if (!(fout = fopen(MONDO_MNTLISTCHG, "w"))) {
     952        log_OS_error("WMTD - Cannot openout "MONDO_MNTLISTCHG);
     953        return (1);
     954    }
     955    fprintf(fout, "the mountlist was changed by mondorestore\n");
     956    paranoid_fclose(fout);
    951957    return (0);
    952958}
Note: See TracChangeset for help on using the changeset viewer.