mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
zipl: Implement zipl helper script for NGDump
The purpose of the new zipl helper script is to build a dumper initramfs for NGDump stand-alone dump. zipl executes the helper script when preparing a NVMe dump partition for stand-alone dump. The zipl helper script expects a single parameter - a path to the dump partition to store a dump on. The helper script terminates with 0 on success and a positive value otherwise. The zipl helper script performs the following steps: - It builds an initramfs image suitable for dumping. To perform this step, the script employs the dracut tool on Fedora/RHEL/SLES and the initramfs-tools on Ubuntu/Debian. - It outputs the path to the newly built initramfs image and the currently active kernel bzImage on the standard output. - It prints the kernel command-line to be used by the dumper on the standard output. On success, zipl expects the helper script to return at least three lines containing: - initrd=<path to an initramfs image> - kernel=<path to a kernel bzImage> - cmdline=<kernel command-line parameters> Signed-off-by: Alexander Egorenkov <egorenar@linux.ibm.com> Acked-by: Alexander Gordeev <agordeev@linux.ibm.com> Tested-by: Alexander Gordeev <agordeev@linux.ibm.com> Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
This commit is contained in:
committed by
Jan Höppner
parent
c1d08e1380
commit
b4142a9966
@@ -135,5 +135,6 @@ int job_get(int argc, char* argv[], struct job_data** data);
|
||||
void job_free(struct job_data* job);
|
||||
int type_from_target(char *target, disk_type_t *type);
|
||||
int check_job_dump_images(struct job_dump_data* dump, char* name);
|
||||
int check_job_images_ngdump(struct job_dump_data* dump, char* name);
|
||||
|
||||
#endif /* not JOB_H */
|
||||
|
||||
Reference in New Issue
Block a user