New -append_partition pseudo partition_number "all" und pseudo type_code "revoke"

This commit is contained in:
Thomas Schmitt 2023-08-07 15:26:51 +02:00
parent aaaa0a99c4
commit 0b7e4f934e
5 changed files with 272 additions and 138 deletions

View File

@ -303,6 +303,15 @@ int Xorriso_option_append_partition(struct XorrisO *xorriso, char *partno_text,
static char *part_type_names[] = {"FAT12", "FAT16", "Linux", "", NULL}; static char *part_type_names[] = {"FAT12", "FAT16", "Linux", "", NULL};
static int part_type_codes[] = { 0x01, 0x06, 0x83, 0x00}; static int part_type_codes[] = { 0x01, 0x06, 0x83, 0x00};
if(strcmp(partno_text, "all") == 0) {
if(strcmp(type_text, "revoke") != 0 && image_path[0] != 0) {
sprintf(xorriso->info_text,
"-append_partition: Pseudo partition number 'all' works only with type code 'revoke' or empty disk path");
Xorriso_msgs_submit(xorriso, 0, xorriso->info_text, 0, "FAILURE", 0);
return(0);
}
partno= -1;
} else {
sscanf(partno_text, "%d", &partno); sscanf(partno_text, "%d", &partno);
if(partno < 1 || partno > Xorriso_max_appended_partitionS) { if(partno < 1 || partno > Xorriso_max_appended_partitionS) {
sprintf(xorriso->info_text, sprintf(xorriso->info_text,
@ -311,6 +320,11 @@ int Xorriso_option_append_partition(struct XorrisO *xorriso, char *partno_text,
Xorriso_msgs_submit(xorriso, 0, xorriso->info_text, 0, "FAILURE", 0); Xorriso_msgs_submit(xorriso, 0, xorriso->info_text, 0, "FAILURE", 0);
return(0); return(0);
} }
}
if(strcmp(type_text, "revoke") == 0) {
disable= 1;
} else {
for(i= 0; part_type_names[i] != NULL; i++) for(i= 0; part_type_names[i] != NULL; i++)
if(strcmp(part_type_names[i], type_text) == 0) if(strcmp(part_type_names[i], type_text) == 0)
break; break;
@ -321,7 +335,6 @@ int Xorriso_option_append_partition(struct XorrisO *xorriso, char *partno_text,
if(ret > 0) if(ret > 0)
guid_valid= 1; guid_valid= 1;
} }
if(type_code < 0) { if(type_code < 0) {
tpt= type_text; tpt= type_text;
if(strncmp(tpt, "0x", 2) == 0) if(strncmp(tpt, "0x", 2) == 0)
@ -340,8 +353,24 @@ bad_type:;
} }
type_code= unum; type_code= unum;
} }
disable= (image_path[0] == 0); disable= (image_path[0] == 0);
}
if(partno == -1) {
/* All partitions */
set_changed= 0;
for(i= 0; i < Xorriso_max_appended_partitionS; i++) {
/* For now only pseudo-type 'revoke' works for all partitions */
if(xorriso->appended_partitions[i - 1] != NULL) {
if(xorriso->appended_partitions[i - 1][0] != 0)
set_changed= 1;
free(xorriso->appended_partitions[i - 1]);
xorriso->appended_partitions[i - 1]= NULL;
}
}
goto work_done;
}
set_changed= 1; set_changed= 1;
if(xorriso->appended_partitions[partno - 1] != NULL) { if(xorriso->appended_partitions[partno - 1] != NULL) {
if(strcmp(xorriso->appended_partitions[partno - 1], image_path) == 0) if(strcmp(xorriso->appended_partitions[partno - 1], image_path) == 0)
@ -354,6 +383,7 @@ bad_type:;
} }
if(disable) if(disable)
goto work_done; goto work_done;
xorriso->appended_partitions[partno - 1]= strdup(image_path); xorriso->appended_partitions[partno - 1]= strdup(image_path);
if(xorriso->appended_partitions[partno - 1] == NULL) { if(xorriso->appended_partitions[partno - 1] == NULL) {
Xorriso_no_malloc_memory(xorriso, NULL, 0); Xorriso_no_malloc_memory(xorriso, NULL, 0);

View File

@ -9,7 +9,7 @@
.\" First parameter, NAME, should be all caps .\" First parameter, NAME, should be all caps
.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection .\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
.\" other parameters are allowed: see man(7), man(1) .\" other parameters are allowed: see man(7), man(1)
.TH XORRISO 1 "Version 1.5.7, Jun 07, 2023" .TH XORRISO 1 "Version 1.5.7, Aug 07, 2023"
.\" Please adjust this date whenever revising the manpage. .\" Please adjust this date whenever revising the manpage.
.\" .\"
.\" Some roff macros, for reference: .\" Some roff macros, for reference:
@ -3591,10 +3591,12 @@ and to write the loaded system area content without alterations.
\fBdiscard\fR gives up the El Torito boot catalog and its boot images. \fBdiscard\fR gives up the El Torito boot catalog and its boot images.
regardless whether loaded from an ISO filesystem or defined by commands. regardless whether loaded from an ISO filesystem or defined by commands.
Any BIOS or EFI related boot options get revoked. Any BIOS or EFI related boot options get revoked.
Nevertheless, loaded system area data stay valid. If desired, they have to be Nevertheless, loaded system area data and the possibly defined appended
erased by partitions stay valid. If desired, they have to be erased by
.br .br
\-boot_image any system_area=/dev/zero \-boot_image any system_area=/dev/zero
.br
\-append_partition all revoke \-
.br .br
\fBkeep\fR keeps or copies El Torito boot images unaltered and writes a new catalog. \fBkeep\fR keeps or copies El Torito boot images unaltered and writes a new catalog.
.br .br
@ -3615,23 +3617,49 @@ you do know that the images need no patching, use "any" "keep".
\fBreplay\fR is a more modern version of "patch", which not only cares \fBreplay\fR is a more modern version of "patch", which not only cares
for existing El Torito boot equipment but also for the recognizable for existing El Torito boot equipment but also for the recognizable
boot provisions in the System Area. It discards any existing \-boot_image boot provisions in the System Area. It discards any existing \-boot_image
setting and executes the commands proposed by command \-report_el_torito "cmd". setting including the system area and executes the commands proposed by
command \-report_el_torito "cmd".
.br .br
This action will only succeed if the file objects mentioned in the This action will only succeed if the file objects mentioned in the
output of command \-report_el_torito "cmd" are still available. Do not output of command \-report_el_torito "cmd" are still available. Do not
remove or rename boot image files after \-indev. remove or rename boot image files after \-indev.
.br .br
Drop unknown El Torito: \-boot_image "any" "discard" Out of historical reasons \fBreplay\fR does not revoke all possibly made
.br \-append_partition settings but only overwrites those for which the loaded
Maintain recognizable stuff: \-boot_image "any" "replay" ISO image provides candidates.
.br
El Torito only for GRUB: \-boot_image "grub" "patch"
.br
El Torito only for ISOLINUX: \-boot_image "isolinux" "patch"
.br .br
\fBshow_status\fR will print what is known about the loaded boot images \fBshow_status\fR will print what is known about the loaded boot images
and their designated fate. and their designated fate.
.br .br
Examples:
.br
Drop unknown El Torito:
.br
\-boot_image any discard
.br
Drop El Torito, system area, appended partitions:
.br
\-boot_image any discard
.br
\-boot_image any system_area=/dev/zero
.br
\-append_partition all revoke \-
.br
Maintain recognizable stuff after revoking possibly made \-append_partition
settings to surely get only the partitions from the loaded ISO:
.br
\-append_partition all revoke \-
.br
\-boot_image any replay
.br
Re\-adjust El Torito only for GRUB:
.br
\-boot_image grub patch
.br
Re\-adjust El Torito only for ISOLINUX:
.br
\-boot_image isolinux patch
.br
A \fBbootspec\fR is a word of the form name=value. It is used to describe A \fBbootspec\fR is a word of the form name=value. It is used to describe
the parameters of a boot feature. the parameters of a boot feature.
@ -4027,10 +4055,9 @@ In APM, 48465300\-0000\-11AA\-AA11\-00306543ECAC will be mapped to partition
type "Apple_HFS", any other to "Data". type "Apple_HFS", any other to "Data".
.br .br
If some other command causes the production of GPT, then the appended If some other command causes the production of GPT, then the appended
partitions will be mentioned there too. partitions will be mentioned there too. GPT can be forced by
.br .br
The disk_path must provide the necessary data bytes at commit time. \-boot_image "any" "appended_part_as=gpt"
An empty disk_path disables this feature for the given partition number.
.br .br
With SUN Disk Label (selected by \-boot_image any sparc_label=): With SUN Disk Label (selected by \-boot_image any sparc_label=):
.br .br
@ -4038,8 +4065,20 @@ partition_number may be 2 to 8. Number 1 will always be the ISO image.
Partition start addresses are aligned to 320 KiB. The type_code does not Partition start addresses are aligned to 320 KiB. The type_code does not
matter. Submit 0x0. matter. Submit 0x0.
.br .br
Partition image name "." causes the partition to become a copy of the next disk_path "." causes the partition to become a copy of the next
lower valid one. lower valid one.
.br
With MBR, GPT, and SUN alike:
.br
The disk_path must provide the necessary data bytes at commit time.
.br
Issueing \-append_partition with a partition number that was already used in
a previous \-append_partition command does not cause an error but silently
overrides the previous setting.
.br
The pseudo type_code "revoke" or an empty disk_path prevent the partition from
being appended. The pseudo partition number "all" may be used in this case to
revoke all previous \-append_partition settings.
.TP .TP
.B Jigdo Template Extraction: .B Jigdo Template Extraction:
.PP .PP

View File

@ -3038,9 +3038,11 @@ Examples:
*discard* gives up the El Torito boot catalog and its boot images. *discard* gives up the El Torito boot catalog and its boot images.
regardless whether loaded from an ISO filesystem or defined by regardless whether loaded from an ISO filesystem or defined by
commands. Any BIOS or EFI related boot options get revoked. commands. Any BIOS or EFI related boot options get revoked.
Nevertheless, loaded system area data stay valid. If desired, they Nevertheless, loaded system area data and the possibly defined
have to be erased by appended partitions stay valid. If desired, they have to be erased
by
-boot_image any system_area=/dev/zero -boot_image any system_area=/dev/zero
-append_partition all revoke -
*keep* keeps or copies El Torito boot images unaltered and writes a *keep* keeps or copies El Torito boot images unaltered and writes a
new catalog. new catalog.
*patch* applies patching to existing El Torito boot images if they *patch* applies patching to existing El Torito boot images if they
@ -3057,17 +3059,32 @@ Examples:
*replay* is a more modern version of "patch", which not only cares *replay* is a more modern version of "patch", which not only cares
for existing El Torito boot equipment but also for the recognizable for existing El Torito boot equipment but also for the recognizable
boot provisions in the System Area. It discards any existing boot provisions in the System Area. It discards any existing
-boot_image setting and executes the commands proposed by command -boot_image setting including the system area and executes the
-report_el_torito "cmd". commands proposed by command -report_el_torito "cmd".
This action will only succeed if the file objects mentioned in the This action will only succeed if the file objects mentioned in the
output of command -report_el_torito "cmd" are still available. Do output of command -report_el_torito "cmd" are still available. Do
not remove or rename boot image files after -indev. not remove or rename boot image files after -indev.
Drop unknown El Torito: -boot_image "any" "discard" Out of historical reasons *replay* does not revoke all possibly
Maintain recognizable stuff: -boot_image "any" "replay" made -append_partition settings but only overwrites those for which
El Torito only for GRUB: -boot_image "grub" "patch" the loaded ISO image provides candidates.
El Torito only for ISOLINUX: -boot_image "isolinux" "patch"
*show_status* will print what is known about the loaded boot images *show_status* will print what is known about the loaded boot images
and their designated fate. and their designated fate.
Examples:
Drop unknown El Torito:
-boot_image any discard
Drop El Torito, system area, appended partitions:
-boot_image any discard
-boot_image any system_area=/dev/zero
-append_partition all revoke -
Maintain recognizable stuff after revoking possibly made
-append_partition settings to surely get only the partitions from
the loaded ISO:
-append_partition all revoke -
-boot_image any replay
Re-adjust El Torito only for GRUB:
-boot_image grub patch
Re-adjust El Torito only for ISOLINUX:
-boot_image isolinux patch
A *bootspec* is a word of the form name=value. It is used to A *bootspec* is a word of the form name=value. It is used to
describe the parameters of a boot feature. The names "dir", describe the parameters of a boot feature. The names "dir",
@ -3400,16 +3417,25 @@ Examples:
48465300-0000-11AA-AA11-00306543ECAC will be mapped to partition 48465300-0000-11AA-AA11-00306543ECAC will be mapped to partition
type "Apple_HFS", any other to "Data". type "Apple_HFS", any other to "Data".
If some other command causes the production of GPT, then the If some other command causes the production of GPT, then the
appended partitions will be mentioned there too. appended partitions will be mentioned there too. GPT can be forced
The disk_path must provide the necessary data bytes at commit time. by
An empty disk_path disables this feature for the given partition -boot_image "any" "appended_part_as=gpt"
number.
With SUN Disk Label (selected by -boot_image any sparc_label=): With SUN Disk Label (selected by -boot_image any sparc_label=):
partition_number may be 2 to 8. Number 1 will always be the ISO partition_number may be 2 to 8. Number 1 will always be the ISO
image. Partition start addresses are aligned to 320 KiB. The image. Partition start addresses are aligned to 320 KiB. The
type_code does not matter. Submit 0x0. type_code does not matter. Submit 0x0.
Partition image name "." causes the partition to become a copy of disk_path "." causes the partition to become a copy of the next
the next lower valid one. lower valid one.
With MBR, GPT, and SUN alike:
The disk_path must provide the necessary data bytes at commit time.
Issueing -append_partition with a partition number that was already
used in a previous -append_partition command does not cause an
error but silently overrides the previous setting.
The pseudo type_code "revoke" or an empty disk_path prevent the
partition from being appended. The pseudo partition number "all"
may be used in this case to revoke all previous -append_partition
settings.
 
File: xorriso.info, Node: Jigdo, Next: Charset, Prev: Bootable, Up: Commands File: xorriso.info, Node: Jigdo, Next: Charset, Prev: Bootable, Up: Commands
@ -5685,7 +5711,7 @@ File: xorriso.info, Node: CommandIdx, Next: ConceptIdx, Prev: Legal, Up: Top
* -alter_date sets timestamps in ISO image: Manip. (line 139) * -alter_date sets timestamps in ISO image: Manip. (line 139)
* -alter_date_r sets timestamps in ISO image: Manip. (line 174) * -alter_date_r sets timestamps in ISO image: Manip. (line 174)
* -append_partition adds arbitrary file after image end: Bootable. * -append_partition adds arbitrary file after image end: Bootable.
(line 433) (line 450)
* -application_id sets application id: SetWrite. (line 218) * -application_id sets application id: SetWrite. (line 218)
* -application_use sets application use field: SetWrite. (line 293) * -application_use sets application use field: SetWrite. (line 293)
* -as emulates mkisofs or cdrecord: Emulation. (line 13) * -as emulates mkisofs or cdrecord: Emulation. (line 13)
@ -5937,12 +5963,12 @@ File: xorriso.info, Node: ConceptIdx, Prev: CommandIdx, Up: Top
* ACL, show in ISO image, -getfacl: Navigate. (line 60) * ACL, show in ISO image, -getfacl: Navigate. (line 60)
* ACL, show in ISO image, -getfacl_r: Navigate. (line 66) * ACL, show in ISO image, -getfacl_r: Navigate. (line 66)
* ACL, _definition: Extras. (line 50) * ACL, _definition: Extras. (line 50)
* APM block size: Bootable. (line 424) * APM block size: Bootable. (line 441)
* APM, _definition: Extras. (line 42) * APM, _definition: Extras. (line 42)
* Appendable media, _definition: Media. (line 43) * Appendable media, _definition: Media. (line 43)
* Appended Filesystem Image, -append_partition: Bootable. (line 433) * Appended Filesystem Image, -append_partition: Bootable. (line 450)
* Appended partition, in APM: Bootable. (line 291) * Appended partition, in APM: Bootable. (line 308)
* Appended partition, in MBR or GPT: Bootable. (line 284) * Appended partition, in MBR or GPT: Bootable. (line 301)
* Automatic execution order, of arguments, -x: ArgSort. (line 16) * Automatic execution order, of arguments, -x: ArgSort. (line 16)
* Backslash Interpretation, _definition: Processing. (line 57) * Backslash Interpretation, _definition: Processing. (line 57)
* Backup, enable fast incremental, -disk_dev_ino: Loading. (line 255) * Backup, enable fast incremental, -disk_dev_ino: Loading. (line 255)
@ -5960,15 +5986,15 @@ File: xorriso.info, Node: ConceptIdx, Prev: CommandIdx, Up: Top
* Character set, learn from image, -auto_charset: Loading. (line 117) * Character set, learn from image, -auto_charset: Loading. (line 117)
* Character Set, of terminal, -local_charset: Charset. (line 57) * Character Set, of terminal, -local_charset: Charset. (line 57)
* Character Set, _definition: Charset. (line 6) * Character Set, _definition: Charset. (line 6)
* CHRP partition, _definition: Bootable. (line 296) * CHRP partition, _definition: Bootable. (line 313)
* Closed media, _definition: Media. (line 49) * Closed media, _definition: Media. (line 49)
* Comment, #: Scripting. (line 156) * Comment, #: Scripting. (line 156)
* Control, signal handling, -signal_handling: Exception. (line 66) * Control, signal handling, -signal_handling: Exception. (line 66)
* Create, new ISO image, _definition: Methods. (line 7) * Create, new ISO image, _definition: Methods. (line 7)
* Cylinder alignment, _definition: Bootable. (line 340) * Cylinder alignment, _definition: Bootable. (line 357)
* Cylinder size, _definition: Bootable. (line 325) * Cylinder size, _definition: Bootable. (line 342)
* Damaged track and session, close, -close_damaged: Writing. (line 209) * Damaged track and session, close, -close_damaged: Writing. (line 209)
* DEC Alpha SRM boot sector, production: Bootable. (line 410) * DEC Alpha SRM boot sector, production: Bootable. (line 427)
* Delete, from ISO image, -rm: Manip. (line 20) * Delete, from ISO image, -rm: Manip. (line 20)
* Delete, from ISO image, -rm_r: Manip. (line 26) * Delete, from ISO image, -rm_r: Manip. (line 26)
* Delete, ISO directory, -rmdir: Manip. (line 29) * Delete, ISO directory, -rmdir: Manip. (line 29)
@ -6000,7 +6026,7 @@ File: xorriso.info, Node: ConceptIdx, Prev: CommandIdx, Up: Top
* Drive, _definition: Drives. (line 6) * Drive, _definition: Drives. (line 6)
* EA, _definition: Extras. (line 66) * EA, _definition: Extras. (line 66)
* ECMA-119, _definition: Model. (line 6) * ECMA-119, _definition: Model. (line 6)
* EFI system partition, _definition: Bootable. (line 305) * EFI system partition, _definition: Bootable. (line 322)
* El Torito, _definition: Extras. (line 19) * El Torito, _definition: Extras. (line 19)
* Emulation, -as: Emulation. (line 13) * Emulation, -as: Emulation. (line 13)
* Emulation, .mkisofsrc, -read_mkisofsrc: Emulation. (line 155) * Emulation, .mkisofsrc, -read_mkisofsrc: Emulation. (line 155)
@ -6025,19 +6051,19 @@ File: xorriso.info, Node: ConceptIdx, Prev: CommandIdx, Up: Top
* Filter, _definition: Filter. (line 6) * Filter, _definition: Filter. (line 6)
* Frontend program, start at pipes, -launch_frontend: Frontend. * Frontend program, start at pipes, -launch_frontend: Frontend.
(line 141) (line 141)
* GPT Legacy BIOS bootable flag, set for ISO: Bootable. (line 362) * GPT Legacy BIOS bootable flag, set for ISO: Bootable. (line 379)
* GPT read-only flag, do not set for ISO: Bootable. (line 367) * GPT read-only flag, do not set for ISO: Bootable. (line 384)
* GPT, control GUID, -boot_image gpt_disk_guid=: Bootable. (line 225) * GPT, control GUID, -boot_image gpt_disk_guid=: Bootable. (line 242)
* GPT, _definition: Extras. (line 39) * GPT, _definition: Extras. (line 39)
* Group, global in ISO image, -gid: SetWrite. (line 314) * Group, global in ISO image, -gid: SetWrite. (line 314)
* Group, in ISO image, -chgrp: Manip. (line 49) * Group, in ISO image, -chgrp: Manip. (line 49)
* Group, in ISO image, -chgrp_r: Manip. (line 53) * Group, in ISO image, -chgrp_r: Manip. (line 53)
* Growing, _definition: Methods. (line 20) * Growing, _definition: Methods. (line 20)
* Hard links, control handling, -hardlinks: Loading. (line 128) * Hard links, control handling, -hardlinks: Loading. (line 128)
* HFS+ allocation block size: Bootable. (line 421) * HFS+ allocation block size: Bootable. (line 438)
* HFS+ serial number: Bootable. (line 418) * HFS+ serial number: Bootable. (line 435)
* hidden, set in ISO image, -hide: Manip. (line 177) * hidden, set in ISO image, -hide: Manip. (line 177)
* HP-PA boot sector, production: Bootable. (line 393) * HP-PA boot sector, production: Bootable. (line 410)
* Image reading, cache size, -data_cache_size: Loading. (line 361) * Image reading, cache size, -data_cache_size: Loading. (line 361)
* Image, demand volume ID, -assert_volid: Loading. (line 105) * Image, demand volume ID, -assert_volid: Loading. (line 105)
* Image, discard pending changes, -rollback: Writing. (line 9) * Image, discard pending changes, -rollback: Writing. (line 9)
@ -6094,15 +6120,15 @@ File: xorriso.info, Node: ConceptIdx, Prev: CommandIdx, Up: Top
* Linux device type, -scsi_dev_family: AqDrive. (line 95) * Linux device type, -scsi_dev_family: AqDrive. (line 95)
* List delimiter, _definition: Processing. (line 13) * List delimiter, _definition: Processing. (line 13)
* Local Character Set, _definition: Charset. (line 11) * Local Character Set, _definition: Charset. (line 11)
* MBR bootable/active flag, enforce: Bootable. (line 351) * MBR bootable/active flag, enforce: Bootable. (line 368)
* MBR, set, -boot_image system_area=: Bootable. (line 200) * MBR, set, -boot_image system_area=: Bootable. (line 217)
* MBR, _definition: Extras. (line 27) * MBR, _definition: Extras. (line 27)
* MD5, control handling, -md5: Loading. (line 183) * MD5, control handling, -md5: Loading. (line 183)
* Media, erase, -blank: Writing. (line 57) * Media, erase, -blank: Writing. (line 57)
* Media, format, -format: Writing. (line 87) * Media, format, -format: Writing. (line 87)
* Media, list formats, -list_formats: Writing. (line 128) * Media, list formats, -list_formats: Writing. (line 128)
* Media, list write speeds, -list_speeds: Writing. (line 139) * Media, list write speeds, -list_speeds: Writing. (line 139)
* MIPS boot file, activation: Bootable. (line 372) * MIPS boot file, activation: Bootable. (line 389)
* mkisofs, Emulation: Emulation. (line 17) * mkisofs, Emulation: Emulation. (line 17)
* Modifying, _definition: Methods. (line 28) * Modifying, _definition: Methods. (line 28)
* Multi-session media, _definition: Media. (line 7) * Multi-session media, _definition: Media. (line 7)
@ -6130,15 +6156,15 @@ File: xorriso.info, Node: ConceptIdx, Prev: CommandIdx, Up: Top
* Ownership, global in ISO image, -uid: SetWrite. (line 311) * Ownership, global in ISO image, -uid: SetWrite. (line 311)
* Ownership, in ISO image, -chown: Manip. (line 43) * Ownership, in ISO image, -chown: Manip. (line 43)
* Ownership, in ISO image, -chown_r: Manip. (line 47) * Ownership, in ISO image, -chown_r: Manip. (line 47)
* Partition offset, _definition: Bootable. (line 315) * Partition offset, _definition: Bootable. (line 332)
* Partition table, _definition: Bootable. (line 265) * Partition table, _definition: Bootable. (line 282)
* Pathspec, _definition: SetInsert. (line 125) * Pathspec, _definition: SetInsert. (line 125)
* Pattern expansion, for disk paths, -disk_pattern: Insert. (line 34) * Pattern expansion, for disk paths, -disk_pattern: Insert. (line 34)
* Pattern expansion, for ISO paths, -iso_rr_pattern: Manip. (line 10) * Pattern expansion, for ISO paths, -iso_rr_pattern: Manip. (line 10)
* Pattern expansion, _definition: Processing. (line 29) * Pattern expansion, _definition: Processing. (line 29)
* Permissions, in ISO image, -chmod: Manip. (line 55) * Permissions, in ISO image, -chmod: Manip. (line 55)
* Permissions, in ISO image, -chmod_r: Manip. (line 66) * Permissions, in ISO image, -chmod_r: Manip. (line 66)
* PReP partition, _definition: Bootable. (line 300) * PReP partition, _definition: Bootable. (line 317)
* Problems, reporting: Bugreport. (line 6) * Problems, reporting: Bugreport. (line 6)
* Process, consolidate text output, -pkt_output: Frontend. (line 7) * Process, consolidate text output, -pkt_output: Frontend. (line 7)
* Process, control abort on error, -abort_on: Exception. (line 27) * Process, control abort on error, -abort_on: Exception. (line 27)
@ -6200,10 +6226,10 @@ File: xorriso.info, Node: ConceptIdx, Prev: CommandIdx, Up: Top
* Session, select as input, -load: Loading. (line 54) * Session, select as input, -load: Loading. (line 54)
* Session, _definition: Model. (line 6) * Session, _definition: Model. (line 6)
* Sorting order, for -x, -list_arg_sorting: ArgSort. (line 26) * Sorting order, for -x, -list_arg_sorting: ArgSort. (line 26)
* SUN Disk Label, production: Bootable. (line 383) * SUN Disk Label, production: Bootable. (line 400)
* SUN SPARC boot images, activation: Bootable. (line 464) * SUN SPARC boot images, activation: Bootable. (line 480)
* Symbolic link, create, -lns: Insert. (line 191) * Symbolic link, create, -lns: Insert. (line 191)
* System area, _definition: Bootable. (line 200) * System area, _definition: Bootable. (line 217)
* Table-of-content, search sessions, -rom_toc_scan: Loading. (line 307) * Table-of-content, search sessions, -rom_toc_scan: Loading. (line 307)
* Table-of-content, show, -toc: Inquiry. (line 27) * Table-of-content, show, -toc: Inquiry. (line 27)
* Timestamps, set in ISO image, -alter_date: Manip. (line 139) * Timestamps, set in ISO image, -alter_date: Manip. (line 139)
@ -6271,40 +6297,40 @@ Node: Filter110498
Node: Writing115120 Node: Writing115120
Node: SetWrite127614 Node: SetWrite127614
Node: Bootable158889 Node: Bootable158889
Node: Jigdo186770 Node: Jigdo187867
Node: Charset191773 Node: Charset192870
Node: Exception195102 Node: Exception196199
Node: DialogCtl201231 Node: DialogCtl202328
Node: Inquiry203833 Node: Inquiry204930
Node: Navigate215091 Node: Navigate216188
Node: Verify223798 Node: Verify224895
Node: Restore234947 Node: Restore236044
Node: Emulation247155 Node: Emulation248252
Node: Scripting257611 Node: Scripting258708
Node: Frontend265394 Node: Frontend266491
Node: Examples275020 Node: Examples276117
Node: ExDevices276198 Node: ExDevices277295
Node: ExCreate276859 Node: ExCreate277956
Node: ExDialog278159 Node: ExDialog279256
Node: ExGrowing279430 Node: ExGrowing280527
Node: ExModifying280239 Node: ExModifying281336
Node: ExBootable280749 Node: ExBootable281846
Node: ExCharset281304 Node: ExCharset282401
Node: ExPseudo282200 Node: ExPseudo283297
Node: ExCdrecord283127 Node: ExCdrecord284224
Node: ExMkisofs283447 Node: ExMkisofs284544
Node: ExGrowisofs285344 Node: ExGrowisofs286441
Node: ExException286497 Node: ExException287594
Node: ExTime286955 Node: ExTime288052
Node: ExIncBackup287413 Node: ExIncBackup288510
Node: ExRestore291439 Node: ExRestore292536
Node: ExRecovery292385 Node: ExRecovery293482
Node: Files292957 Node: Files294054
Node: Environ294291 Node: Environ295388
Node: Seealso295039 Node: Seealso296136
Node: Bugreport295756 Node: Bugreport296853
Node: Legal296347 Node: Legal297444
Node: CommandIdx297359 Node: CommandIdx298456
Node: ConceptIdx315257 Node: ConceptIdx316354
 
End Tag Table End Tag Table

View File

@ -50,7 +50,7 @@
@c man .\" First parameter, NAME, should be all caps @c man .\" First parameter, NAME, should be all caps
@c man .\" Second parameter, SECTION, should be 1-8, maybe w/ subsection @c man .\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
@c man .\" other parameters are allowed: see man(7), man(1) @c man .\" other parameters are allowed: see man(7), man(1)
@c man .TH XORRISO 1 "Version 1.5.7, Jun 07, 2023" @c man .TH XORRISO 1 "Version 1.5.7, Aug 07, 2023"
@c man .\" Please adjust this date whenever revising the manpage. @c man .\" Please adjust this date whenever revising the manpage.
@c man .\" @c man .\"
@c man .\" Some roff macros, for reference: @c man .\" Some roff macros, for reference:
@ -4145,10 +4145,12 @@ and to write the loaded system area content without alterations.
@strong{discard} gives up the El Torito boot catalog and its boot images. @strong{discard} gives up the El Torito boot catalog and its boot images.
regardless whether loaded from an ISO filesystem or defined by commands. regardless whether loaded from an ISO filesystem or defined by commands.
Any BIOS or EFI related boot options get revoked. Any BIOS or EFI related boot options get revoked.
Nevertheless, loaded system area data stay valid. If desired, they have to be Nevertheless, loaded system area data and the possibly defined appended
erased by partitions stay valid. If desired, they have to be erased by
@* @*
-boot_image any system_area=/dev/zero -boot_image any system_area=/dev/zero
@*
-append_partition all revoke -
@* @*
@strong{keep} keeps or copies El Torito boot images unaltered and writes a new catalog. @strong{keep} keeps or copies El Torito boot images unaltered and writes a new catalog.
@* @*
@ -4169,23 +4171,49 @@ you do know that the images need no patching, use "any" "keep".
@strong{replay} is a more modern version of "patch", which not only cares @strong{replay} is a more modern version of "patch", which not only cares
for existing El Torito boot equipment but also for the recognizable for existing El Torito boot equipment but also for the recognizable
boot provisions in the System Area. It discards any existing -boot_image boot provisions in the System Area. It discards any existing -boot_image
setting and executes the commands proposed by command -report_el_torito "cmd". setting including the system area and executes the commands proposed by
command -report_el_torito "cmd".
@* @*
This action will only succeed if the file objects mentioned in the This action will only succeed if the file objects mentioned in the
output of command -report_el_torito "cmd" are still available. Do not output of command -report_el_torito "cmd" are still available. Do not
remove or rename boot image files after -indev. remove or rename boot image files after -indev.
@* @*
Drop unknown El Torito: -boot_image "any" "discard" Out of historical reasons @strong{replay} does not revoke all possibly made
@* -append_partition settings but only overwrites those for which the loaded
Maintain recognizable stuff: -boot_image "any" "replay" ISO image provides candidates.
@*
El Torito only for GRUB: -boot_image "grub" "patch"
@*
El Torito only for ISOLINUX: -boot_image "isolinux" "patch"
@* @*
@strong{show_status} will print what is known about the loaded boot images @strong{show_status} will print what is known about the loaded boot images
and their designated fate. and their designated fate.
@* @*
Examples:
@*
Drop unknown El Torito:
@*
-boot_image any discard
@*
Drop El Torito, system area, appended partitions:
@*
-boot_image any discard
@*
-boot_image any system_area=/dev/zero
@*
-append_partition all revoke -
@*
Maintain recognizable stuff after revoking possibly made -append_partition
settings to surely get only the partitions from the loaded ISO:
@*
-append_partition all revoke -
@*
-boot_image any replay
@*
Re-adjust El Torito only for GRUB:
@*
-boot_image grub patch
@*
Re-adjust El Torito only for ISOLINUX:
@*
-boot_image isolinux patch
@*
@sp 1 @sp 1
A @strong{bootspec} is a word of the form name=value. It is used to describe A @strong{bootspec} is a word of the form name=value. It is used to describe
@ -4609,10 +4637,9 @@ In APM, 48465300-0000-11AA-AA11-00306543ECAC will be mapped to partition
type "Apple_HFS", any other to "Data". type "Apple_HFS", any other to "Data".
@* @*
If some other command causes the production of GPT, then the appended If some other command causes the production of GPT, then the appended
partitions will be mentioned there too. partitions will be mentioned there too. GPT can be forced by
@* @*
The disk_path must provide the necessary data bytes at commit time. -boot_image "any" "appended_part_as=gpt"
An empty disk_path disables this feature for the given partition number.
@* @*
@cindex SUN SPARC boot images, activation @cindex SUN SPARC boot images, activation
With SUN Disk Label (selected by -boot_image any sparc_label=): With SUN Disk Label (selected by -boot_image any sparc_label=):
@ -4621,8 +4648,20 @@ partition_number may be 2 to 8. Number 1 will always be the ISO image.
Partition start addresses are aligned to 320 KiB. The type_code does not Partition start addresses are aligned to 320 KiB. The type_code does not
matter. Submit 0x0. matter. Submit 0x0.
@* @*
Partition image name "." causes the partition to become a copy of the next disk_path "." causes the partition to become a copy of the next
lower valid one. lower valid one.
@*
With MBR, GPT, and SUN alike:
@*
The disk_path must provide the necessary data bytes at commit time.
@*
Issueing -append_partition with a partition number that was already used in
a previous -append_partition command does not cause an error but silently
overrides the previous setting.
@*
The pseudo type_code "revoke" or an empty disk_path prevent the partition from
being appended. The pseudo partition number "all" may be used in this case to
revoke all previous -append_partition settings.
@end table @end table
@c man .TP @c man .TP
@c man .B Jigdo Template Extraction: @c man .B Jigdo Template Extraction:

View File

@ -1 +1 @@
#define Xorriso_timestamP "2023.08.06.133040" #define Xorriso_timestamP "2023.08.07.132608"