[kexec-tools/f19] kdump.service: Start kdump after network is online and remote fs is mounted

Baoquan He baoquan at fedoraproject.org
Fri Sep 27 11:07:43 UTC 2013


commit aa650c1b4df7a9527183443980d875489cb3b3da
Author: WANG Chao <chaowang at redhat.com>
Date:   Wed Sep 25 20:35:05 2013 +0800

    kdump.service: Start kdump after network is online and remote fs is mounted
    
    Now kdump.service runs "After" network.target. But network.target
    doesn't mean network is setup and online[1]. We should use
    network-online.target instead for ssh/nfs dump.
    
    And also because nfs dump requires a mounted nfs when rebuilding kdump
    initrd, kdump.service should also run "After" remote-fs.target (this
    means all remote fs configured in /etc/fstab is mounted).
    
    The downside of this patch is we always need to wait for network-online.target
    even when dump target is a local disk. If network fails to come up,
    kdump.service have to be stuck until network-online.target timeout (90
    seconds by default).
    
    Signed-off-by: WANG Chao <chaowang at redhat.com>
    Acked-by: Vivek Goyal <vgoyal at redhat.com>

 kdump.service |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/kdump.service b/kdump.service
index 07e97fa..55b7ca2 100644
--- a/kdump.service
+++ b/kdump.service
@@ -1,6 +1,6 @@
 [Unit]
 Description=Crash recovery kernel arming
-After=network.target
+After=network.target network-online.target remote-fs.target
 
 [Service]
 Type=oneshot


More information about the scm-commits mailing list