zipl: add an ability to specify components location

When creating a bootmap, look for zipl components (stage3.bin and
zipl helpers) in a directory specified by S390TOOLS_LIBDIR shell
environment variable. If that variable is not set, then look for
them at the default location.

In verbose mode print the name of s390-tools library directory,
where the search was implemented.

Signed-off-by: Eduard Shishkin <edward6@linux.ibm.com>
Reviewed-by: Jan Höppner <hoeppner@linux.ibm.com>
Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
This commit is contained in:
Eduard Shishkin
2021-06-22 14:21:18 +02:00
committed by Jan Höppner
parent a645ec0fc0
commit ebde75eeda
4 changed files with 7 additions and 3 deletions

View File

@@ -198,7 +198,7 @@ disk_get_info(const char* device, struct job_target_data* target,
int fd;
long devsize;
FILE *fh;
char *script_pre = TOOLS_LIBDIR "/zipl_helper.";
const char *script_pre = util_libdir_path("/zipl_helper.");
char *script_file = NULL;
char *ppn_cmd = NULL;
char buffer[80];