mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
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>
31 lines
1.0 KiB
Makefile
31 lines
1.0 KiB
Makefile
|
|
include ../../common.mak
|
|
|
|
MODULESDIR := /usr/lib/dracut/modules.d/
|
|
NGDUMPDIR := 99ngdump
|
|
|
|
# HAVE_DRACUT
|
|
#
|
|
# This install time parameter determines whether the ngdump dracut module is
|
|
# installed (HAVE_DRACUT=1) or not (default). When installed, the module
|
|
# performs the following functions when dracut is run:
|
|
#
|
|
# - install the systemd service that initiates the dump at boot
|
|
# - install the dump script that is run by the new systemd service at boot
|
|
#
|
|
ifeq ($(HAVE_DRACUT),1)
|
|
install:
|
|
$(INSTALL) -m 755 zipl_helper.prepare-ngdump \
|
|
$(DESTDIR)$(TOOLS_LIBDIR)
|
|
$(INSTALL) -m 755 -d $(DESTDIR)$(MODULESDIR)
|
|
$(INSTALL) -m 755 -d $(DESTDIR)$(MODULESDIR)/$(NGDUMPDIR)
|
|
$(INSTALL) -m 755 $(NGDUMPDIR)/module-setup.sh \
|
|
$(DESTDIR)$(MODULESDIR)/$(NGDUMPDIR)/
|
|
$(INSTALL) -m 644 $(NGDUMPDIR)/ngdump.service \
|
|
$(DESTDIR)$(MODULESDIR)/$(NGDUMPDIR)/
|
|
$(INSTALL) -m 755 $(NGDUMPDIR)/ngdump.sh \
|
|
$(DESTDIR)$(MODULESDIR)/$(NGDUMPDIR)/
|
|
$(INSTALL) -m 755 $(NGDUMPDIR)/ngdump-reipl.sh \
|
|
$(DESTDIR)$(MODULESDIR)/$(NGDUMPDIR)/
|
|
endif
|