Browse Source

Bug fix: At image loading time GRUB2 MBR was not recognized if the partition

table is not the protective one as described by UEFI.
release-1.5.4.branch
Thomas Schmitt 5 years ago
parent
commit
b269557743
  1. 2
      libisofs/fs_image.c
  2. 5
      libisofs/libisofs.h

2
libisofs/fs_image.c

@ -3964,7 +3964,7 @@ int iso_analyze_mbr(IsoImage *image, IsoDataSource *src, int flag)
sub_type = 0;
is_isohybrid = 1;
} else if(ret == 2) {
sub_type = 0;
/* will become sub_type 0 if protective_label */
is_grub2_mbr = 1;
}

5
libisofs/libisofs.h

@ -2220,8 +2220,9 @@ int iso_write_opts_set_fifo_size(IsoWriteOpts *opts, size_t fifo_size);
* bit10-13= System area sub type
* @since 1.2.4
* With type 0:
* bit0 ... MBR with partition start at block 1
* bit1 ... ISOLINUX isohybrid MBR
* if options bit0 ... MBR with partition start at block 1
* if options bit1 ... ISOLINUX isohybrid MBR
* else:
* 0 = no particular sub type, use unaltered
* 1 = CHRP: A single MBR partition of type 0x96 covers the
* ISO image. Not compatible with any other feature

Loading…
Cancel
Save