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

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