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

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