|
|
ab0e4d |
From ba1a065c528bd5774c61a3c286e9a7ed7cc467e8 Mon Sep 17 00:00:00 2001
|
|
|
ab0e4d |
From: Martin Wilck <mwilck@suse.de>
|
|
|
ab0e4d |
Date: Thu, 21 Mar 2019 14:40:33 +0100
|
|
|
ab0e4d |
Subject: [PATCH] iscsi: fix error messages with iSCSI root
|
|
|
ab0e4d |
|
|
|
ab0e4d |
Fixes these error messages during intird build:
|
|
|
ab0e4d |
|
|
|
ab0e4d |
cat: '/sys/devices/platform/host2/flashnode_sess-*/is_boot_target': No such file or directory
|
|
|
ab0e4d |
/usr/lib/dracut/modules.d/95iscsi/module-setup.sh: line 91: [: -eq: unary operator expected
|
|
|
ab0e4d |
cat: '/sys/devices/platform/host3/flashnode_sess-*/is_boot_target': No such file or directory
|
|
|
ab0e4d |
/usr/lib/dracut/modules.d/95iscsi/module-setup.sh: line 91: [: -eq: unary operator expected
|
|
|
ab0e4d |
|
|
|
ab0e4d |
(cherry picked from commit 78efd6988ec6b39ea80ba8e432d7df1abe1c081f)
|
|
|
ab0e4d |
|
|
|
ab0e4d |
Resolves: #1552619
|
|
|
ab0e4d |
---
|
|
|
ab0e4d |
modules.d/95iscsi/module-setup.sh | 1 +
|
|
|
ab0e4d |
1 file changed, 1 insertion(+)
|
|
|
ab0e4d |
|
|
|
ab0e4d |
diff --git a/modules.d/95iscsi/module-setup.sh b/modules.d/95iscsi/module-setup.sh
|
|
|
ab0e4d |
index dc63ef46..618d1dc2 100755
|
|
|
ab0e4d |
--- a/modules.d/95iscsi/module-setup.sh
|
|
|
ab0e4d |
+++ b/modules.d/95iscsi/module-setup.sh
|
|
|
ab0e4d |
@@ -86,6 +86,7 @@ install_iscsiroot() {
|
|
|
ab0e4d |
iscsi_host=${host##*/}
|
|
|
ab0e4d |
|
|
|
ab0e4d |
for flash in ${host}/flashnode_sess-* ; do
|
|
|
ab0e4d |
+ [ -f "$flash" ] || continue
|
|
|
ab0e4d |
[ ! -e "$flash/is_boot_target" ] && continue
|
|
|
ab0e4d |
is_boot=$(cat $flash/is_boot_target)
|
|
|
ab0e4d |
if [ $is_boot -eq 1 ] ; then
|
|
|
ab0e4d |
|