mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
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:
committed by
Steffen Eiden
parent
60bc1e38d0
commit
1ca5f63dee
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user