zipl/src: Use generic infrastructure when adding environment block

Apply previously introduced generic infrastructure to add an
environment block as a "buffer component".


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-07-30 18:01:32 +02:00
committed by Steffen Eiden
parent 60bc1e38d0
commit 1ca5f63dee
3 changed files with 57 additions and 67 deletions
+10
View File
@@ -52,6 +52,11 @@ struct component_loc {
struct component_footer {
component_type type;
const char *desc;
int fs_block_aligned; /* if true, then the component should
* be aligned to fs_block_size boundary
* in the bootmap file. Otherwise, to
* phy_block_size boundary.
*/
};
struct program_component {
@@ -113,6 +118,11 @@ static inline const char *component_desc_by_id(enum program_component_id id)
return component_footers[id].desc;
}
static inline int fs_block_aligned_by_id(enum program_component_id id)
{
return component_footers[id].fs_block_aligned;
}
static inline struct program_component *get_component(struct install_set *bis,
int mirror_id,
int i, int j)