Browse Source

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.

(From OE-Core rev: 6f709f0c5a4ce57e522a65774fd567013b95d82e)

Signed-off-by: Andrew Bresticker <abrestic@waymo.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Andrew Bresticker 6 năm trước cách đây
mục cha
commit
0b22cc4407
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      meta/recipes-kernel/kexec/kexec-tools/kdump.service

+ 2 - 1
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