Enabled GPT type GUIDs with -append_partition, -boot_image any iso_mbr_part_type=, and -as mkisofs -iso_mbr_part_type

This commit is contained in:
2019-02-18 13:19:32 +01:00
parent caf38e81ae
commit fc71cec8f7
17 changed files with 469 additions and 230 deletions

View File

@ -1086,14 +1086,20 @@ Examples:
Gaps between GPT and APM partitions will not be filled by more
partitions. Appended partitions get mentioned in APM if other APM
partitions emerge.
-iso_mbr_part_type "default"|number
Set the partition type of the MBR partition which represents the
ISO or at least protects it. Number may be 0x00 to 0xff. The text
"default" re-enables the default types of the various occasions to
create an ISO MBR partition.
This is without effect if no such partition emerges by other
settings or if the partition type is prescribed mandatorily like
0xee for GPT protective MBR or 0x96 for CHRP.
-iso_mbr_part_type "default"|number|type_guid
Set the partition type of the MBR or GPT partition which represents
the ISO or at least protects it.
Number may be 0x00 to 0xff. The text "default" re-enables the
default types of the various occasions to create an ISO MBR
partition. This is without effect if no such partition emerges by
other settings or if the partition type is prescribed mandatorily
like 0xee for GPT protective MBR or 0x96 for CHRP.
If instead a type_guid is given by a 32-digit hex string like
a2a0d0ebe5b9334487c068b6b72699c7 or by a structured text like
EBD0A0A2-B9E5-4433-87C0-68B6B72699C7, then it will be used as
partition type if the ISO filesystem appears as partition in GPT.
In MBR, C12A7328-F81F-11D2-BA4B-00A0C93EC93B will be mapped to
0xef. Any other GUID will be mapped to 0x83.
--protective-msdos-label
Patch the System Area by a simple PC-DOS partition table where
partition 1 claims the range of the ISO image but leaves the first
@ -1163,8 +1169,16 @@ Examples:
The type_code may be "FAT12", "FAT16", "Linux", or a hexadecimal
number between 0x00 and 0xff. Not all those numbers will yield
usable results. For a list of codes search the Internet for
"Partition Types" or run fdisk command "L". This code matters only
with MBR, not with GPT.
"Partition Types" or run fdisk command "L". If the partition
appears in GPT then type_code 0xef is mapped to the EFI System
Partition Type GUID. All others get mapped to Basic Data Type GUID.
type_code may also be a type GUID as plain hex string like
a2a0d0ebe5b9334487c068b6b72699c7 or as structured text like
EBD0A0A2-B9E5-4433-87C0-68B6B72699C7. It will be used if the
partition is mentioned in GPT. In MBR,
C12A7328-F81F-11D2-BA4B-00A0C93EC93B will be mapped to 0xef. Any
other GUID will be mapped to 0x83.
If some other command causes the production of GPT, then the
appended partitions will be mentioned there too, even if not
-appended_part_as_gpt is given.
@ -1909,7 +1923,7 @@ for libburnia-project.org
11.2 Copyright
==============
Copyright (c) 2011 - 2018 Thomas Schmitt
Copyright (c) 2011 - 2019 Thomas Schmitt
Permission is granted to distribute this text freely. It shall only be
modified in sync with the technical properties of xorriso. If you make
use of the license to derive modified versions of xorriso then you are
@ -1941,13 +1955,13 @@ File: xorrisofs.info, Node: CommandIdx, Next: ConceptIdx, Prev: Legal, Up: T
* --embedded-boot Fill System Area e.g. by MBR: SystemArea. (line 79)
* --emul-toc enable table-of-content emulation: SetProduct. (line 33)
* --for_backup Enable backup fidelity: SetExtras. (line 92)
* --gpt_disk_guid GPT GUID: SystemArea. (line 231)
* --gpt_disk_guid GPT GUID: SystemArea. (line 245)
* --grub2-boot-info Patch El Torito boot image: Bootable. (line 109)
* --grub2-mbr Install modern GRUB2 MBR: SystemArea. (line 81)
* --grub2-sparc-core SUN SPARC core file: SystemArea. (line 286)
* --grub2-sparc-core SUN SPARC core file: SystemArea. (line 300)
* --hardlinks Recording of hardlink relations: SetExtras. (line 130)
* --mbr-force-bootable Enforce MBR bootable/active flag: SystemArea.
(line 139)
(line 145)
* --md5 Recording of MD5 checksums: SetExtras. (line 122)
* --modification-date set ISO image timestamps: ImageId. (line 70)
* --no-emul-toc no table-of-content emulation: SetProduct. (line 41)
@ -1961,7 +1975,7 @@ File: xorrisofs.info, Node: CommandIdx, Next: ConceptIdx, Prev: Legal, Up: T
(line 73)
* --old-root-no-md5 disable MD5 with -old-root: SetInsert. (line 91)
* --protective-msdos-label Patch System Area partition table: SystemArea.
(line 135)
(line 141)
* --quoted_path_list read pathspecs from disk file: SetInsert.
(line 12)
* --scdbackup_tag Recording of MD5 checksum: SetExtras. (line 138)
@ -1978,16 +1992,16 @@ File: xorrisofs.info, Node: CommandIdx, Next: ConceptIdx, Prev: Legal, Up: T
* -A set Application Id: ImageId. (line 34)
* -abstract set Abstract File path: ImageId. (line 57)
* -allow-lowercase lowercase in ISO file names: SetCompl. (line 42)
* -alpha-boot DEC Alpha SRM bootloader: SystemArea. (line 309)
* -alpha-boot DEC Alpha SRM bootloader: SystemArea. (line 323)
* -appended_part_as_apm Appended partitions in APM: SystemArea.
(line 215)
(line 229)
* -appended_part_as_gpt Appended partitions in GPT: SystemArea.
(line 209)
(line 223)
* -append_partition Append MBR or GPT partition after image: SystemArea.
(line 189)
(line 195)
* -appid set Application Id: ImageId. (line 41)
* -b El Torito PC-BIOS boot image: Bootable. (line 38)
* -B SUN SPARC boot images: SystemArea. (line 271)
* -B SUN SPARC boot images: SystemArea. (line 285)
* -biblio set Biblio File path: ImageId. (line 62)
* -boot-info-table Patch El Torito boot image: Bootable. (line 104)
* -boot-load-size El Torito boot image load size: Bootable. (line 72)
@ -1998,8 +2012,8 @@ File: xorrisofs.info, Node: CommandIdx, Next: ConceptIdx, Prev: Legal, Up: T
* -checksum_algorithm_iso choose .jigdo checksums: Jigdo. (line 72)
* -checksum_algorithm_template choose .template checksums: Jigdo.
(line 78)
* -chrp-boot CHRP partition: SystemArea. (line 253)
* -chrp-boot-part CHRP partition: SystemArea. (line 244)
* -chrp-boot CHRP partition: SystemArea. (line 267)
* -chrp-boot-part CHRP partition: SystemArea. (line 258)
* -copyright set Copyright File path: ImageId. (line 66)
* -D allow deep directory hierachies: SetExtras. (line 60)
* -d omit trailing dot in ISO file names: SetCompl. (line 50)
@ -2010,7 +2024,7 @@ File: xorrisofs.info, Node: CommandIdx, Next: ConceptIdx, Prev: Legal, Up: T
* -disallow_dir_id_ext enforce ISO level 1 directory names: SetCompl.
(line 23)
* -e El Torito EFI boot image: Bootable. (line 53)
* -efi-boot-part EFI boot partition: SystemArea. (line 221)
* -efi-boot-part EFI boot partition: SystemArea. (line 235)
* -eltorito-alt-boot begin next boot catalog entry: Bootable. (line 47)
* -eltorito-boot El Torito PC-BIOS boot image: Bootable. (line 45)
* -eltorito-catalog El Torito boot catalog name: Bootable. (line 119)
@ -2056,12 +2070,12 @@ File: xorrisofs.info, Node: CommandIdx, Next: ConceptIdx, Prev: Legal, Up: T
(line 15)
* -hide-rr-moved set deep directory relocation target: SetExtras.
(line 90)
* -hppa-bootloader HP-PA bootloader file: SystemArea. (line 298)
* -hppa-cmdline HP-PA PALO command line: SystemArea. (line 292)
* -hppa-hdrversion HP-PA PALO header version: SystemArea. (line 306)
* -hppa-kernel_32 HP-PA kernel_32 file: SystemArea. (line 300)
* -hppa-kernel_64 HP-PA kernel_64 file: SystemArea. (line 302)
* -hppa-ramdisk HP-PA ramdisk file: SystemArea. (line 304)
* -hppa-bootloader HP-PA bootloader file: SystemArea. (line 312)
* -hppa-cmdline HP-PA PALO command line: SystemArea. (line 306)
* -hppa-hdrversion HP-PA PALO header version: SystemArea. (line 320)
* -hppa-kernel_32 HP-PA kernel_32 file: SystemArea. (line 314)
* -hppa-kernel_64 HP-PA kernel_64 file: SystemArea. (line 316)
* -hppa-ramdisk HP-PA ramdisk file: SystemArea. (line 318)
* -input-charset set character set of disk file names: Charset.
(line 17)
* -iso-level define ISO 9660 limitations: SetCompl. (line 7)
@ -2092,8 +2106,8 @@ File: xorrisofs.info, Node: CommandIdx, Next: ConceptIdx, Prev: Legal, Up: T
* -max-iso9660-filenames allow 37 characters in ISO file names: SetCompl.
(line 61)
* -md5-list set path of readable .md5: Jigdo. (line 67)
* -mips-boot MIPS Big Endian boot image: SystemArea. (line 260)
* -mipsel-boot MIPS Little Endian boot image: SystemArea. (line 266)
* -mips-boot MIPS Big Endian boot image: SystemArea. (line 274)
* -mipsel-boot MIPS Little Endian boot image: SystemArea. (line 280)
* -N omit version number in ISO file names: SetCompl. (line 64)
* -no-emul-boot El Torito boot image emulation: Bootable. (line 86)
* -no-pad do not add zeros to ISO tree: SetProduct. (line 101)
@ -2109,15 +2123,15 @@ File: xorrisofs.info, Node: CommandIdx, Next: ConceptIdx, Prev: Legal, Up: T
* -p set Preparer Id: ImageId. (line 47)
* -P set Publisher Id: ImageId. (line 28)
* -pad add 300 KiB of zeros to ISO tree: SetProduct. (line 94)
* -partition_cyl_align Image size alignment: SystemArea. (line 178)
* -partition_hd_cyl MBR heads per cylinder: SystemArea. (line 161)
* -partition_cyl_align Image size alignment: SystemArea. (line 184)
* -partition_hd_cyl MBR heads per cylinder: SystemArea. (line 167)
* -partition_offset Make mountable by partition 1: SystemArea.
(line 150)
* -partition_sec_hd MBR sectors per head: SystemArea. (line 164)
(line 156)
* -partition_sec_hd MBR sectors per head: SystemArea. (line 170)
* -part_like_isohybrid Mark partitions like with isohybrid: SystemArea.
(line 120)
* -path-list read pathspecs from disk file: SetInsert. (line 8)
* -prep-boot-part PReP partition: SystemArea. (line 255)
* -prep-boot-part PReP partition: SystemArea. (line 269)
* -preparer set Preparer Id: ImageId. (line 55)
* -prev-session set path for loading existing ISO image: Loading.
(line 21)
@ -2134,8 +2148,8 @@ File: xorrisofs.info, Node: CommandIdx, Next: ConceptIdx, Prev: Legal, Up: T
* -root redirect ISO root directory: SetInsert. (line 55)
* -rr_reloc_dir set deep directory relocation target: SetExtras.
(line 74)
* -sparc-boot SUN SPARC boot images: SystemArea. (line 282)
* -sparc-label SUN Disk Label text: SystemArea. (line 284)
* -sparc-boot SUN SPARC boot images: SystemArea. (line 296)
* -sparc-label SUN Disk Label text: SystemArea. (line 298)
* -sysid set System Id: ImageId. (line 43)
* -transparent-compression enable recognition of zisofs files: SetInsert.
(line 53)
@ -2165,7 +2179,7 @@ File: xorrisofs.info, Node: ConceptIdx, Prev: CommandIdx, Up: Top
* Abstract File, set path, -abstract: ImageId. (line 57)
* ACL, record and load, --acl: SetExtras. (line 103)
* APM, mark appended partitions, -appended_part_as_apm: SystemArea.
(line 215)
(line 229)
* APM, _definition: SystemArea. (line 16)
* Application Id, set, -A, -appid: ImageId. (line 34)
* Backup, enable fidelity, --for_backup: SetExtras. (line 92)
@ -2189,31 +2203,31 @@ File: xorrisofs.info, Node: ConceptIdx, Prev: CommandIdx, Up: Top
* Bootability, boot image patching, -boot-info-table: Bootable.
(line 104)
* Bootability, bootable MBR partition, --mbr-force-bootable: SystemArea.
(line 139)
* Bootability, control, --grub2-sparc-core: SystemArea. (line 286)
(line 145)
* Bootability, control, --grub2-sparc-core: SystemArea. (line 300)
* Bootability, control, --efi-boot: Bootable. (line 59)
* Bootability, control, -alpha-boot: SystemArea. (line 309)
* Bootability, control, -alpha-boot: SystemArea. (line 323)
* Bootability, control, -b, -eltorito-boot: Bootable. (line 38)
* Bootability, control, -B, -sparc-boot: SystemArea. (line 271)
* Bootability, control, -B, -sparc-boot: SystemArea. (line 285)
* Bootability, control, -e: Bootable. (line 53)
* Bootability, control, -eltorito-platform: Bootable. (line 63)
* Bootability, control, -hppa-bootloader: SystemArea. (line 298)
* Bootability, control, -hppa-cmdline: SystemArea. (line 292)
* Bootability, control, -hppa-hdrversion: SystemArea. (line 306)
* Bootability, control, -hppa-kernel_32: SystemArea. (line 300)
* Bootability, control, -hppa-kernel_64: SystemArea. (line 302)
* Bootability, control, -hppa-ramdisk: SystemArea. (line 304)
* Bootability, control, -mips-boot: SystemArea. (line 260)
* Bootability, control, -mipsel-boot: SystemArea. (line 266)
* Bootability, control, -hppa-bootloader: SystemArea. (line 312)
* Bootability, control, -hppa-cmdline: SystemArea. (line 306)
* Bootability, control, -hppa-hdrversion: SystemArea. (line 320)
* Bootability, control, -hppa-kernel_32: SystemArea. (line 314)
* Bootability, control, -hppa-kernel_64: SystemArea. (line 316)
* Bootability, control, -hppa-ramdisk: SystemArea. (line 318)
* Bootability, control, -mips-boot: SystemArea. (line 274)
* Bootability, control, -mipsel-boot: SystemArea. (line 280)
* Bootability, El Torito section id string, -eltorito-id: Bootable.
(line 93)
* Bootability, El Torito selection criteria, -eltorito-selcrit: Bootable.
(line 100)
* Bootability, fill System Area e.g. by MBR, -G, --embedded-boot, -generic-boot: SystemArea.
(line 68)
* Bootability, for CHRP, -chrp-boot-part: SystemArea. (line 244)
* Bootability, for EFI, -efi-boot-part: SystemArea. (line 221)
* Bootability, for PReP, -prep-boot-part: SystemArea. (line 255)
* Bootability, for CHRP, -chrp-boot-part: SystemArea. (line 258)
* Bootability, for EFI, -efi-boot-part: SystemArea. (line 235)
* Bootability, for PReP, -prep-boot-part: SystemArea. (line 269)
* Bootability, install ISOLINUX isohybrid MBR, -isohybrid-mbr: SystemArea.
(line 87)
* Bootability, install modern GRUB2 MBR, --grub2-mbr: SystemArea.
@ -2230,8 +2244,8 @@ File: xorrisofs.info, Node: ConceptIdx, Prev: CommandIdx, Up: Top
* Bootability, partitions like with isohybrid, -part_like_isohybrid: SystemArea.
(line 120)
* Bootability, patch System Area partition table, --protective-msdos-label: SystemArea.
(line 135)
* Bootability, SUN Disk Label text, -sparc-label: SystemArea. (line 284)
(line 141)
* Bootability, SUN Disk Label text, -sparc-label: SystemArea. (line 298)
* Bootability, type of ISO MBR partition, -iso_mbr_part_type: SystemArea.
(line 127)
* Bugs, reporting: Bugreport. (line 6)
@ -2250,7 +2264,7 @@ File: xorrisofs.info, Node: ConceptIdx, Prev: CommandIdx, Up: Top
* Disk files, exclude, -hide-list: SetInsert. (line 44)
* Disk files, exclude, -m, -exclude, -x, -old-exclude: SetInsert.
(line 31)
* Disk GUID, for GPT, --gpt_disk_guid: SystemArea. (line 231)
* Disk GUID, for GPT, --gpt_disk_guid: SystemArea. (line 245)
* disk_path, _definition: Insert. (line 7)
* ECMA-119, _definition: Standards. (line 6)
* El Torito, _definition: Bootable. (line 13)
@ -2259,7 +2273,7 @@ File: xorrisofs.info, Node: ConceptIdx, Prev: CommandIdx, Up: Top
* File timestamps, set all, --set_all_file_dates: SetExtras. (line 35)
* Forced output, control, --stdio_sync: SetProduct. (line 23)
* GPT, mark appended partitions, -appended_part_as_gpt: SystemArea.
(line 209)
(line 223)
* GPT, _definition: SystemArea. (line 13)
* Group, for all files, -gid: SetProduct. (line 83)
* HFS+, enables production: SetExtras. (line 164)
@ -2277,7 +2291,7 @@ File: xorrisofs.info, Node: ConceptIdx, Prev: CommandIdx, Up: Top
* Hiding, from ISO and Rock Ridge, -hide-list: SetHide. (line 15)
* Hiding, from Joliet, -hide-joliet: SetHide. (line 18)
* Hiding, from Joliet, -hide-joliet-list: SetHide. (line 22)
* Image size, alignment, -partition_cyl_align: SystemArea. (line 178)
* Image size, alignment, -partition_cyl_align: SystemArea. (line 184)
* Incremental insertion, disable disk ino, --old-root-no-ino: SetInsert.
(line 73)
* Incremental insertion, disable MD5, --old-root-no-md5: SetInsert.
@ -2331,16 +2345,16 @@ File: xorrisofs.info, Node: ConceptIdx, Prev: CommandIdx, Up: Top
* Joliet, _definition: Standards. (line 21)
* Links, follow on disk, -f, -follow-links: SetInsert. (line 22)
* Links, record and load hard links, --hardlinks: SetExtras. (line 130)
* MBR, GPT, append partition, -append_partition: SystemArea. (line 189)
* MBR, sectors per head, -partition_sec_hd: SystemArea. (line 161)
* MBR, sectors per head, -partition_sec_hd <1>: SystemArea. (line 164)
* MBR, GPT, append partition, -append_partition: SystemArea. (line 195)
* MBR, sectors per head, -partition_sec_hd: SystemArea. (line 167)
* MBR, sectors per head, -partition_sec_hd <1>: SystemArea. (line 170)
* MBR, _definition: SystemArea. (line 9)
* MD5, record and load, --md5: SetExtras. (line 122)
* Message output, increase frequency, -gui: Miscellaneous. (line 29)
* Message output, redirect stderr, -log-file: Miscellaneous. (line 33)
* Message output, suppress, -quiet: Miscellaneous. (line 25)
* Mountability, by non-trivial partition 1, -partition_offset: SystemArea.
(line 150)
(line 156)
* Options, list, -help: Miscellaneous. (line 21)
* Output file, set address, -o, -output: SetProduct. (line 8)
* Ownership, for all files, -uid: SetProduct. (line 79)
@ -2400,23 +2414,23 @@ Node: SetHide33398
Node: ImageId34702
Node: Bootable38984
Node: SystemArea45270
Node: Charset62636
Node: Jigdo63661
Node: Miscellaneous67938
Node: Examples69583
Node: ExSimple70077
Node: ExGraft70560
Node: ExMkisofs71860
Node: ExGrowisofs73669
Node: ExIncBackup74859
Node: ExIncBckAcc78036
Node: ExBootable79741
Node: Files83923
Node: Environ85018
Node: Seealso85789
Node: Bugreport86440
Node: Legal87033
Node: CommandIdx87930
Node: ConceptIdx103797
Node: Charset63502
Node: Jigdo64527
Node: Miscellaneous68804
Node: Examples70449
Node: ExSimple70943
Node: ExGraft71426
Node: ExMkisofs72726
Node: ExGrowisofs74535
Node: ExIncBackup75725
Node: ExIncBckAcc78902
Node: ExBootable80607
Node: Files84789
Node: Environ85884
Node: Seealso86655
Node: Bugreport87306
Node: Legal87899
Node: CommandIdx88796
Node: ConceptIdx104663

End Tag Table