]> code.ossystems Code Review - openembedded-core.git/commitdiff
kdump: start kdump.service after basic.target
authorYongxin Liu <yongxin.liu@windriver.com>
Mon, 30 Jul 2018 09:16:32 +0000 (17:16 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 1 Aug 2018 22:00:19 +0000 (23:00 +0100)
If kdump.service is set to run on boot and dump-capture kernel isn't
placed in /dev/root, kdump.service will fail to load the kernel,
since other partitions are not mounted yet. Starting kdump.service
after basic.target guarantees dump-capture kernel can be loaded in
this situation.

(From OE-Core rev: ac9a54fc617ff5f1eb75fa8500187c5ed3effe46)

Signed-off-by: Yongxin Liu <yongxin.liu@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
meta/recipes-kernel/kexec/kexec-tools/kdump.service

index 4e65a46ac4c24e058ea344ef1aa4f5b24d4f9414..013c5a62b33acd16c57e2c55b12e74eac9d5fd86 100644 (file)
@@ -1,6 +1,7 @@
 [Unit]
 Description=Reboot and dump vmcore via kexec
 DefaultDependencies=no
+After=basic.target
 
 [Service]
 Type=oneshot