Ignore:
Timestamp:
Aug 4, 2015, 8:57:22 AM (9 years ago)
Author:
Bruno Cornec
Message:

Adds a boot-type config option

It's filled by mondoarchive, passed to mindi as new 23rd param and
stored in the config file. It's also now read at restore time. No
exploitation of this parameter is done yet.
Remains also to prepare a correct bootable device for restoration
(currently ia64 == EFI we should manage the boot loader separately from
the boot type and from the boot env of the DR media)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.2/mondo/src/mondorestore/mondo-rstr-tools.c

    r3383 r3397  
    834834}
    835835
     836/* BCO: Read here the boot_* variables */
     837read_cfg_var(cfg_file, "boot-type", value);
     838if (!strcmp(value, "BIOS")) {
     839    bkpinfo->boot_type = BIOS;
     840} else if (!strcmp(value, "EFI")) {
     841    bkpinfo->boot_type = EFI;
     842} else if (!strcmp(value, "UEFI")) {
     843    bkpinfo->boot_type = UEFI;
     844} else {
     845    log_msg(1, "No known boot type found");
     846}
     847log_msg(1, "Found %s boot type",value);
     848
    836849if (bkpinfo->backup_media_type == netfs) {
    837850    if (!cfgf) {
Note: See TracChangeset for help on using the changeset viewer.