File kdump-remove-unnecessary-systemd-dependencies.patch of Package kdump

From: Petr Tesarik <ptesarik@suse.cz>
Date: Mon Aug 24 20:40:25 2015 +0200
Subject: Remove unnecessary dependencies from kdump-save.service
References: bsc#942895
Patch-mainline: v0.8.16
Git-commit: a237821a09af4143caa8b79c5fae3c419985c399

The attempt to serialize with other parts of dracut is wrong,
because the dracut pieces are linked together using Wants=, but
kdump-service has a hard requirement on the kdump mount points,
so it may run out of sync anyway.

The dependency on dracut-pre-pivot.service in fact creates a cycle,
because dracut-pre-pivot wants to be run after initrd.target, but
initrd.target wants kdump-save.service.

Signed-off-by: Petr Tesarik <ptesarik@suse.com>

diff --git a/init/kdump-save.service.in b/init/kdump-save.service.in
index e47a167..97a781b 100644
--- a/init/kdump-save.service.in
+++ b/init/kdump-save.service.in
@@ -11,8 +11,6 @@
 Description=save kernel crash dump
 Documentation=man:kdump(7)
 RequiresMountsFor=@KDUMP_MOUNTPOINTS@
-Wants=dracut-mount.service dracut-pre-pivot.service
-After=dracut-mount.service dracut-pre-pivot.service
 Before=initrd-cleanup.service
 ConditionPathExists=/etc/initrd-release
 ConditionPathExists=/proc/vmcore
openSUSE Build Service is sponsored by