Browse Source

Claiming full output size in first PVD if partition offset is non-zero

release-1.5.4.branch
Thomas Schmitt 4 years ago
parent
commit
afb10aac3b
  1. 11
      libisofs/eltorito.c

11
libisofs/eltorito.c

@ -1505,11 +1505,18 @@ int eltorito_writer_create(Ecma119Image *target)
target->catalog->bootimages[idx]->appended_start;
target->boot_intvl_size[idx] =
target->catalog->bootimages[idx]->appended_size;
if (((target->system_area_options >> 2) & 0x3f) == 0 &&
(target->system_area_options & 3) == 1) {
/* >>> ??? Why only with appended partition as El Torito image ?
Can this be used in all cases of appended partitions ?
*/
if ((((target->system_area_options >> 2) & 0x3f) == 0 &&
(target->system_area_options & 3) == 1) ||
target->opts->partition_offset > 0) {
/* Protective MBR || partition offset */
/* ISO will not be a partition. It can span the whole image. */
target->pvd_size_is_total_size = 1;
}
continue;
}

Loading…
Cancel
Save