zipl/src: Reuse data of file components in bootmap

If the option '--add-files' is specified, don't duplicate data of
components added via add_component_file() and friends to bootmap
file for each mirror. Instead, reuse the data that were added when
preparing a program table for the first mirror to create metadata
(block lists, program tables, etc) specific for other mirrors.


Signed-off-by: Eduard Shishkin <edward6@linux.ibm.com>
Reviewed-by: Stefan Haberland <sth@linux.ibm.com>
Signed-off-by: Steffen Eiden <seiden@linux.ibm.com>
This commit is contained in:
Eduard Shishkin
2025-08-27 14:16:42 +02:00
committed by Steffen Eiden
parent 731f00202c
commit 431e4542ca
2 changed files with 30 additions and 5 deletions
+1
View File
@@ -80,6 +80,7 @@ struct install_set {
int nr_menu_entries;
struct misc_fd mfd;
struct install_set_mirror mirrors[MAX_TARGETS];
struct file_range comp_reg[NR_PROGRAM_COMPONENTS];
char *filename;
unsigned int skip_prepare_device:1;
unsigned int tmp_filename_created:1;