|
|
18971c |
From 12aa314819f2b1067442e8a7aa5d3f36301b7f47 Mon Sep 17 00:00:00 2001
|
|
|
18971c |
From: Hannes Reinecke <hare@suse.de>
|
|
|
18971c |
Date: Thu, 25 Feb 2016 20:58:12 +0800
|
|
|
18971c |
Subject: [PATCH] 95iscsi: More empty cmdline fixes
|
|
|
18971c |
|
|
|
18971c |
This fixes up some 95iscsi/module-setup.sh which might print out empty
|
|
|
18971c |
commandline files.
|
|
|
18971c |
|
|
|
18971c |
Signed-off-by: Hannes Reinecke <hare@suse.de>
|
|
|
18971c |
Signed-off-by: Thomas Renninger <trenn@suse.de>
|
|
|
18971c |
---
|
|
|
18971c |
modules.d/95iscsi/module-setup.sh | 13 +++++++------
|
|
|
18971c |
1 file changed, 7 insertions(+), 6 deletions(-)
|
|
|
18971c |
|
|
|
18971c |
diff --git a/modules.d/95iscsi/module-setup.sh b/modules.d/95iscsi/module-setup.sh
|
|
|
18971c |
index 181da3c7..64c9c1d1 100755
|
|
|
18971c |
--- a/modules.d/95iscsi/module-setup.sh
|
|
|
18971c |
+++ b/modules.d/95iscsi/module-setup.sh
|
|
|
18971c |
@@ -75,12 +75,6 @@ depends() {
|
|
|
18971c |
installkernel() {
|
|
|
18971c |
local _arch=$(uname -m)
|
|
|
18971c |
|
|
|
18971c |
- # Detect iBFT and perform mandatory steps
|
|
|
18971c |
- if [[ $hostonly_cmdline == "yes" ]] ; then
|
|
|
18971c |
- install_ibft > "${initdir}/etc/cmdline.d/95iscsi.conf"
|
|
|
18971c |
- echo >> "${initdir}/etc/cmdline.d/95iscsi.conf"
|
|
|
18971c |
- fi
|
|
|
18971c |
-
|
|
|
18971c |
instmods bnx2i qla4xxx cxgb3i cxgb4i be2iscsi
|
|
|
18971c |
hostonly="" instmods iscsi_tcp iscsi_ibft crc32c iscsi_boot_sysfs
|
|
|
18971c |
iscsi_module_filter() {
|
|
|
18971c |
@@ -129,6 +123,13 @@ install() {
|
|
|
18971c |
inst_multiple umount iscsistart hostname iscsi-iname
|
|
|
18971c |
inst_multiple -o iscsiuio
|
|
|
18971c |
inst_libdir_file 'libgcc_s.so*'
|
|
|
18971c |
+
|
|
|
18971c |
+ # Detect iBFT and perform mandatory steps
|
|
|
18971c |
+ if [[ $hostonly_cmdline == "yes" ]] ; then
|
|
|
18971c |
+ local _ibftconf=$(install_ibft)
|
|
|
18971c |
+ [[ $_ibftconf ]] && printf "%s\n" "$_ibftconf" >> "${initdir}/etc/cmdline.d/95iscsi.conf"
|
|
|
18971c |
+ fi
|
|
|
18971c |
+
|
|
|
18971c |
inst_hook cmdline 90 "$moddir/parse-iscsiroot.sh"
|
|
|
18971c |
inst_hook cleanup 90 "$moddir/cleanup-iscsi.sh"
|
|
|
18971c |
inst "$moddir/iscsiroot.sh" "/sbin/iscsiroot"
|