diff options
Diffstat (limited to 'lib/MGA/DrakISO/BuildISO.pm')
-rw-r--r-- | lib/MGA/DrakISO/BuildISO.pm | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/MGA/DrakISO/BuildISO.pm b/lib/MGA/DrakISO/BuildISO.pm index c905f1e..2711e4c 100644 --- a/lib/MGA/DrakISO/BuildISO.pm +++ b/lib/MGA/DrakISO/BuildISO.pm @@ -97,6 +97,12 @@ sub build_iso_image { my $iso_name = $build->get_name . '.iso'; + my $iso_part_start = $build->{media}{iso_part_start} || 0; + $iso_part_start == 0 || $iso_part_start == 1 + or die "ERROR: unsupported start sector for ISO protective partition\n"; + + my $iso_part_type = $build->{media}{iso_part_type} || '0x00'; + my $dest = $build_dir . '/' . $iso_name; my $xorriso_version = `xorriso -version 2> /dev/null | head -1`; @@ -130,8 +136,8 @@ sub build_iso_image { '--efi-boot', '--interval:appended_partition_2:all::', # for USB EFI boot '-part_like_isohybrid', - '-iso_mbr_part_type', '0x00', - if_($build->{media}{protect_sector_0} eq 'no', + '-iso_mbr_part_type', $iso_part_type, + if_($build->{media}{iso_part_start} == 1, '--protective-msdos-label', ), '-append_partition', 2, '0xef', $esp_image, |