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

e8d211
From 3e34fefae3f44bfd1ee24931663b92ff4f76d3ad Mon Sep 17 00:00:00 2001
631ea0
From: Chris Leech <cleech@redhat.com>
631ea0
Date: Tue, 28 May 2013 13:12:27 -0700
e8d211
Subject: [PATCH 12/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
e8d211
index 0309e2fc9892..d5712bd3779b 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
-- 
e8d211
2.14.3
631ea0