|
|
e83cdd |
From 81b59fbbd6ebeee05b5d6869ae4f36bb9e486f72 Mon Sep 17 00:00:00 2001
|
|
|
e83cdd |
From: Lukas Nykryn <lnykryn@redhat.com>
|
|
|
e83cdd |
Date: Tue, 8 Jan 2019 17:16:07 +0100
|
|
|
e83cdd |
Subject: [PATCH] 95iscsi: rd.iscsi.initiator should have priority over stored
|
|
|
e83cdd |
configuration
|
|
|
e83cdd |
|
|
|
e83cdd |
(cherry picked from commit 61afc704548cecc7f7d2fa3b5f1319e790cc5bee)
|
|
|
e83cdd |
|
|
|
e83cdd |
Resolves: #1664062
|
|
|
e83cdd |
---
|
|
|
e83cdd |
modules.d/95iscsi/parse-iscsiroot.sh | 15 +++++++--------
|
|
|
e83cdd |
1 file changed, 7 insertions(+), 8 deletions(-)
|
|
|
e83cdd |
|
|
|
e83cdd |
diff --git a/modules.d/95iscsi/parse-iscsiroot.sh b/modules.d/95iscsi/parse-iscsiroot.sh
|
|
|
e83cdd |
index 7a64d888..f00a83bb 100755
|
|
|
e83cdd |
--- a/modules.d/95iscsi/parse-iscsiroot.sh
|
|
|
e83cdd |
+++ b/modules.d/95iscsi/parse-iscsiroot.sh
|
|
|
e83cdd |
@@ -107,14 +107,13 @@ if arg=$(getarg rd.iscsi.initiator -d iscsi_initiator=) && [ -n "$arg" ] && ! [
|
|
|
e83cdd |
iscsi_initiator=$arg
|
|
|
e83cdd |
echo "InitiatorName=$iscsi_initiator" > /run/initiatorname.iscsi
|
|
|
e83cdd |
ln -fs /run/initiatorname.iscsi /dev/.initiatorname.iscsi
|
|
|
e83cdd |
- if ! [ -e /etc/iscsi/initiatorname.iscsi ]; then
|
|
|
e83cdd |
- mkdir -p /etc/iscsi
|
|
|
e83cdd |
- ln -fs /run/initiatorname.iscsi /etc/iscsi/initiatorname.iscsi
|
|
|
e83cdd |
- if [ -n "$DRACUT_SYSTEMD" ]; then
|
|
|
e83cdd |
- systemctl try-restart iscsid
|
|
|
e83cdd |
- # FIXME: iscsid is not yet ready, when the service is :-/
|
|
|
e83cdd |
- sleep 1
|
|
|
e83cdd |
- fi
|
|
|
e83cdd |
+ rm -f /etc/iscsi/initiatorname.iscsi
|
|
|
e83cdd |
+ mkdir -p /etc/iscsi
|
|
|
e83cdd |
+ ln -fs /run/initiatorname.iscsi /etc/iscsi/initiatorname.iscsi
|
|
|
e83cdd |
+ if [ -n "$DRACUT_SYSTEMD" ]; then
|
|
|
e83cdd |
+ systemctl try-restart iscsid
|
|
|
e83cdd |
+ # FIXME: iscsid is not yet ready, when the service is :-/
|
|
|
e83cdd |
+ sleep 1
|
|
|
e83cdd |
fi
|
|
|
e83cdd |
fi
|
|
|
e83cdd |
|
|
|
e83cdd |
|