Blame 0013-Don-t-check-for-autostart-sessions-if-iscsi-is-not-u.patch

7c06f4
From d0eb66bf5a232653ee81b23997897d1062826666 Mon Sep 17 00:00:00 2001
631ea0
From: Chris Leech <cleech@redhat.com>
631ea0
Date: Tue, 28 May 2013 13:12:27 -0700
7c06f4
Subject: [PATCH 13/22] Don't check for autostart sessions if iscsi is not used
7c06f4
 (bug #951951)
631ea0
631ea0
Change conditional startup in iscsi.service to check for a non-empty
631ea0
nodes directory, instead of initiator-name.  This fits better with what
631ea0
it's doing, as there's no need to scan for autostart node records if
631ea0
there are no node records at all.
631ea0
---
631ea0
 etc/systemd/iscsi.service | 2 +-
631ea0
 1 file changed, 1 insertion(+), 1 deletion(-)
631ea0
631ea0
diff --git a/etc/systemd/iscsi.service b/etc/systemd/iscsi.service
929689
index 0309e2f..d5712bd 100644
631ea0
--- a/etc/systemd/iscsi.service
631ea0
+++ b/etc/systemd/iscsi.service
631ea0
@@ -5,7 +5,7 @@ DefaultDependencies=no
631ea0
 Conflicts=shutdown.target
631ea0
 After=systemd-remount-fs.service network.target iscsid.service iscsiuio.service
631ea0
 Before=remote-fs-pre.target
631ea0
-ConditionPathExists=/etc/iscsi/initiatorname.iscsi
631ea0
+ConditionDirectoryNotEmpty=/var/lib/iscsi/nodes
631ea0
 
631ea0
 [Service]
631ea0
 Type=oneshot
631ea0
-- 
7c06f4
2.9.3
631ea0