Blame 0017-update-iscsi.service-for-boot-session-recovery.patch

7c06f4
From e032f33bcb166bb3a47b580192e8856765a26503 Mon Sep 17 00:00:00 2001
fbd856
From: Chris Leech <cleech@redhat.com>
fbd856
Date: Fri, 14 Mar 2014 09:22:21 -0700
7c06f4
Subject: [PATCH 17/22] update iscsi.service for boot session recovery
fbd856
fbd856
---
fbd856
 etc/systemd/iscsi.service | 5 +++--
fbd856
 1 file changed, 3 insertions(+), 2 deletions(-)
fbd856
fbd856
diff --git a/etc/systemd/iscsi.service b/etc/systemd/iscsi.service
fbd856
index d5712bd..3de76c5 100644
fbd856
--- a/etc/systemd/iscsi.service
fbd856
+++ b/etc/systemd/iscsi.service
fbd856
@@ -5,14 +5,15 @@ DefaultDependencies=no
fbd856
 Conflicts=shutdown.target
fbd856
 After=systemd-remount-fs.service network.target iscsid.service iscsiuio.service
fbd856
 Before=remote-fs-pre.target
fbd856
-ConditionDirectoryNotEmpty=/var/lib/iscsi/nodes
fbd856
+ConditionDirectoryNotEmpty=|/var/lib/iscsi/nodes
fbd856
+ConditionDirectoryNotEmpty=|/sys/class/iscsi_session
fbd856
 
fbd856
 [Service]
fbd856
 Type=oneshot
fbd856
 RemainAfterExit=true
fbd856
 ExecStart=/usr/libexec/iscsi-mark-root-nodes
fbd856
+SuccessExitStatus=21
fbd856
 ExecStart=/sbin/iscsiadm -m node --loginall=automatic
fbd856
-ExecStop=/bin/sync
fbd856
 ExecStop=/sbin/iscsiadm -m node --logoutall=automatic
fbd856
 ExecReload=/sbin/iscsiadm -m node --loginall=automatic
fbd856
 
fbd856
-- 
7c06f4
2.9.3
fbd856