Skip to contentSkip to conversation

kexec-tools: Install systemd service

PATCH New Andrew Bresticker 1 participant 2 messages Sep 12, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 kexec-tools: Install systemd service

Set SYSTEMD_PACKAGES and SYSTEMD_SERVICE so that kdump.service actually gets installed.

---
 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
index dd46901197..4b9b5accb6 100644
@@ -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
#1 lore raw

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.

---
 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
index 013c5a62b3..b4a2c0611d 100644
@@ -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