Changeset 3746 in MondoRescue for branches/3.3/mondo/src/common


Ignore:
Timestamp:
Nov 19, 2019, 1:25:56 PM (4 years ago)
Author:
Bruno Cornec
Message:

Reinstall mbr.bin (or pgtmbr.bin) from syslinux before calling boot loader restoration to avoid having nothing if we boot from a partition
(tested with SLES 12)

Location:
branches/3.3/mondo/src/common
Files:
2 edited

Legend:

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

    r3650 r3746  
    629629        }
    630630        bootldr_ver = call_program_and_get_last_line_of_output("grub --version 2> /dev/null");
    631         if (strcmp(bootldr_ver,"") ==0) {
     631        if (strcmp(bootldr_ver,"") == 0) {
    632632            mr_free(bootldr_ver);
    633633            bootldr_ver = call_program_and_get_last_line_of_output("grub2-install --version");
  • branches/3.3/mondo/src/common/libmondo-devices.c

    r3719 r3746  
    25152515            }
    25162516        }
     2517        /*  TODO: Useless I think */
    25172518        if (bkpinfo->disaster_recovery) {
    25182519            mr_asprintf(command ,"umount %s/isodir 2> /dev/null", bkpinfo->tmpdir);
Note: See TracChangeset for help on using the changeset viewer.