mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
zkey: Add initramfs hook
Add hook script to allow zkey utilities to be used in initramfs. Closes: https://github.com/ibm-s390-linux/s390-tools/pull/42 Signed-off-by: Dimitri John Ledkov <xnox@ubuntu.com> Reviewd-by Ingo Franzki <ifranzki@linux.ibm.com> [hoeppner@linux.ibm.com: removed / in Makefile and updated commit message] Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
This commit is contained in:
committed by
Jan Höppner
parent
b01ef782f0
commit
3669fd4d8a
@@ -0,0 +1,21 @@
|
||||
# Common definitions
|
||||
include ../../common.mak
|
||||
|
||||
INITRAMFSDIR := /usr/share/initramfs-tools
|
||||
HOOKDIR := $(INITRAMFSDIR)/hooks
|
||||
INITTOP := $(INITRAMFSDIR)/scripts/init-top
|
||||
|
||||
# HAVE_INITRAMFS
|
||||
#
|
||||
# This install time parameter determines whether the zkey initramfs support is
|
||||
# installed (HAVE_INITRAMFS=1) or not (default). When installed, the module
|
||||
# performs the following functions when mkinitramfs is run:
|
||||
#
|
||||
# - install a hook to include zkey related utilities and zkey repository in
|
||||
# the initramfs
|
||||
#
|
||||
ifeq ($(HAVE_INITRAMFS),1)
|
||||
install:
|
||||
$(INSTALL) -m 755 -d $(DESTDIR)$(HOOKDIR) $(DESTDIR)$(INITTOP)
|
||||
$(INSTALL) -m 755 hooks/s390-tools-zkey $(DESTDIR)$(HOOKDIR)
|
||||
endif
|
||||
Reference in New Issue
Block a user