* [PATCH 1/2] kexec-tools: Install systemd service
@ 2018-09-12 17:44 Andrew Bresticker
2018-09-12 17:44 ` [PATCH 2/2] kexec-tools: Depend on sysinit.target rather than basic.target Andrew Bresticker
0 siblings, 1 reply; 2+ messages in thread
From: Andrew Bresticker @ 2018-09-12 17:44 UTC (permalink / raw)
To: openembedded-core
Set SYSTEMD_PACKAGES and SYSTEMD_SERVICE so that kdump.service actually
gets installed.
Signed-off-by: Andrew Bresticker <abrestic@waymo.com>
---
meta/recipes-kernel/kexec/kexec-tools_2.0.17.bb | 3 +++
1 file changed, 3 insertions(+)
diff --git a/meta/recipes-kernel/kexec/kexec-tools_2.0.17.bb b/meta/recipes-kernel/kexec/kexec-tools_2.0.17.bb
index dd46901197..4b9b5accb6 100644
--- a/meta/recipes-kernel/kexec/kexec-tools_2.0.17.bb
+++ b/meta/recipes-kernel/kexec/kexec-tools_2.0.17.bb
@@ -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.*)'
--
2.19.0.rc2.392.g5ba43deb5a-goog
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [PATCH 2/2] kexec-tools: Depend on sysinit.target rather than basic.target
2018-09-12 17:44 [PATCH 1/2] kexec-tools: Install systemd service Andrew Bresticker
@ 2018-09-12 17:44 ` Andrew Bresticker
0 siblings, 0 replies; 2+ messages in thread
From: Andrew Bresticker @ 2018-09-12 17:44 UTC (permalink / raw)
To: openembedded-core
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 <abrestic@waymo.com>
---
meta/recipes-kernel/kexec/kexec-tools/kdump.service | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/meta/recipes-kernel/kexec/kexec-tools/kdump.service b/meta/recipes-kernel/kexec/kexec-tools/kdump.service
index 013c5a62b3..b4a2c0611d 100644
--- a/meta/recipes-kernel/kexec/kexec-tools/kdump.service
+++ b/meta/recipes-kernel/kexec/kexec-tools/kdump.service
@@ -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
--
2.19.0.rc2.392.g5ba43deb5a-goog
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-09-12 17:44 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-09-12 17:44 [PATCH 1/2] kexec-tools: Install systemd service Andrew Bresticker
2018-09-12 17:44 ` [PATCH 2/2] kexec-tools: Depend on sysinit.target rather than basic.target Andrew Bresticker
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox