|
Harald Hoyer |
bb31e7 |
From 7391fef29ab9a4766b5eb04d05803f2ebaa95752 Mon Sep 17 00:00:00 2001
|
|
Harald Hoyer |
bb31e7 |
From: Harald Hoyer <harald@redhat.com>
|
|
Harald Hoyer |
bb31e7 |
Date: Tue, 25 Aug 2015 11:14:38 +0200
|
|
Harald Hoyer |
bb31e7 |
Subject: [PATCH] iscsi/iscsiroot.sh: handle firmware in online queue
|
|
Harald Hoyer |
bb31e7 |
|
|
Harald Hoyer |
bb31e7 |
otherwise it does not get called, if no netroot is set
|
|
Harald Hoyer |
bb31e7 |
|
|
Harald Hoyer |
bb31e7 |
(cherry picked from commit 3bd3bbec319eccd28145f77e42b83b479286ff34)
|
|
Harald Hoyer |
bb31e7 |
---
|
|
Harald Hoyer |
bb31e7 |
modules.d/95iscsi/iscsiroot.sh | 32 +++++++++++++++-----------------
|
|
Harald Hoyer |
bb31e7 |
1 file changed, 15 insertions(+), 17 deletions(-)
|
|
Harald Hoyer |
bb31e7 |
|
|
Harald Hoyer |
bb31e7 |
diff --git a/modules.d/95iscsi/iscsiroot.sh b/modules.d/95iscsi/iscsiroot.sh
|
|
Harald Hoyer |
bb31e7 |
index ad95812..893f279 100755
|
|
Harald Hoyer |
bb31e7 |
--- a/modules.d/95iscsi/iscsiroot.sh
|
|
Harald Hoyer |
bb31e7 |
+++ b/modules.d/95iscsi/iscsiroot.sh
|
|
Harald Hoyer |
bb31e7 |
@@ -236,28 +236,26 @@ if [ "$netif" = "dummy" ] && all_ifaces_up; then
|
|
Harald Hoyer |
bb31e7 |
sleep 2
|
|
Harald Hoyer |
bb31e7 |
fi
|
|
Harald Hoyer |
bb31e7 |
|
|
Harald Hoyer |
bb31e7 |
-# loop over all netroot parameter
|
|
Harald Hoyer |
bb31e7 |
-netroot=$(getarg netroot)
|
|
Harald Hoyer |
bb31e7 |
-if [ $? -eq 0 ] && [ "$netroot" != "dhcp" ]; then
|
|
Harald Hoyer |
bb31e7 |
- for nroot in $(getargs netroot); do
|
|
Harald Hoyer |
bb31e7 |
- [ "${nroot%%:*}" = "iscsi" ] || continue
|
|
Harald Hoyer |
bb31e7 |
- nroot="${nroot##iscsi:}"
|
|
Harald Hoyer |
bb31e7 |
- if [ -n "$nroot" ]; then
|
|
Harald Hoyer |
bb31e7 |
- handle_netroot "$nroot"
|
|
Harald Hoyer |
bb31e7 |
- ret=$(($ret + $?))
|
|
Harald Hoyer |
bb31e7 |
- fi
|
|
Harald Hoyer |
bb31e7 |
- done
|
|
Harald Hoyer |
bb31e7 |
+if [ "$netif" = "online" ]; then
|
|
Harald Hoyer |
bb31e7 |
if getargbool 0 rd.iscsi.firmware -d -y iscsi_firmware ; then
|
|
Harald Hoyer |
bb31e7 |
handle_firmware
|
|
Harald Hoyer |
bb31e7 |
- ret=$(($ret + $?))
|
|
Harald Hoyer |
bb31e7 |
+ ret=$?
|
|
Harald Hoyer |
bb31e7 |
fi
|
|
Harald Hoyer |
bb31e7 |
else
|
|
Harald Hoyer |
bb31e7 |
- if [ -n "$iroot" ]; then
|
|
Harald Hoyer |
bb31e7 |
- handle_netroot "$iroot"
|
|
Harald Hoyer |
bb31e7 |
- ret=$?
|
|
Harald Hoyer |
bb31e7 |
+ # loop over all netroot parameter
|
|
Harald Hoyer |
bb31e7 |
+ nroot=$(getarg netroot)
|
|
Harald Hoyer |
bb31e7 |
+ if [ $? -eq 0 ] && [ "$nroot" != "dhcp" ]; then
|
|
Harald Hoyer |
bb31e7 |
+ for nroot in $(getargs netroot); do
|
|
Harald Hoyer |
bb31e7 |
+ [ "${nroot%%:*}" = "iscsi" ] || continue
|
|
Harald Hoyer |
bb31e7 |
+ nroot="${nroot##iscsi:}"
|
|
Harald Hoyer |
bb31e7 |
+ if [ -n "$nroot" ]; then
|
|
Harald Hoyer |
bb31e7 |
+ handle_netroot "$nroot"
|
|
Harald Hoyer |
bb31e7 |
+ ret=$(($ret + $?))
|
|
Harald Hoyer |
bb31e7 |
+ fi
|
|
Harald Hoyer |
bb31e7 |
+ done
|
|
Harald Hoyer |
bb31e7 |
else
|
|
Harald Hoyer |
bb31e7 |
- if getargbool 0 rd.iscsi.firmware -d -y iscsi_firmware ; then
|
|
Harald Hoyer |
bb31e7 |
- handle_firmware
|
|
Harald Hoyer |
bb31e7 |
+ if [ -n "$iroot" ]; then
|
|
Harald Hoyer |
bb31e7 |
+ handle_netroot "$iroot"
|
|
Harald Hoyer |
bb31e7 |
ret=$?
|
|
Harald Hoyer |
bb31e7 |
fi
|
|
Harald Hoyer |
bb31e7 |
fi
|