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

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