[OE-core] [PATCH 2/2] kexec-tools: Depend on sysinit.target rather than basic.target

Andrew Bresticker abrestic at waymo.com
Wed Sep 12 17:44:15 UTC 2018


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 at 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




More information about the Openembedded-core mailing list