kexec-tools: Install systemd service
PATCH 1/2 kexec-tools: Install systemd service
Set SYSTEMD_PACKAGES and SYSTEMD_SERVICE so that kdump.service actually gets installed.
Signed-off-by Andrew Bresticker <[email protected]>
--- meta/recipes-kernel/kexec/kexec-tools_2.0.17.bb | 3 +++ 1 file changed, 3 insertions(+)
meta/recipes-kernel/kexec/kexec-tools_2.0.17.bb +3 -0
@@ -78,6 +78,9 @@ INITSCRIPT_PACKAGES = "kdump" INITSCRIPT_NAME_kdump = "kdump" INITSCRIPT_PARAMS_kdump = "start 56 2 3 4 5 . stop 56 0 1 6 ." +SYSTEMD_PACKAGES = "kdump" +SYSTEMD_SERVICE_kdump = "kdump.service" + SECURITY_PIE_CFLAGS_remove = "-fPIE -pie" COMPATIBLE_HOST = '(x86_64.*|i.86.*|arm.*|aarch64.*|powerpc.*|mips.*)-(linux|freebsd.*)'
Signature · 1 line
2.19.0.rc2.392.g5ba43deb5a-goog
PATCH 2/2 kexec-tools: Depend on sysinit.target rather than basic.target
kdump.service only needs filesystems to be up, for which sysinit.target is sufficeint. basic.target pulls in networking and other services which are unnecessary for kdump. This is also useful for when kdump.service is used as the boot target (e.g. for the kdump kernel) and only a minimal system needs to be brought up.
Signed-off-by Andrew Bresticker <[email protected]>
--- meta/recipes-kernel/kexec/kexec-tools/kdump.service | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
meta/recipes-kernel/kexec/kexec-tools/kdump.service +2 -1
@@ -1,7 +1,8 @@ [Unit] Description=Reboot and dump vmcore via kexec DefaultDependencies=no -After=basic.target +Requires=sysinit.target +After=sysinit.target [Service] Type=oneshot
Signature · 1 line
2.19.0.rc2.392.g5ba43deb5a-goog