summaryrefslogtreecommitdiffstats
path: root/modules.d/95iscsi/module-setup.sh
diff options
context:
space:
mode:
Diffstat (limited to 'modules.d/95iscsi/module-setup.sh')
-rwxr-xr-xmodules.d/95iscsi/module-setup.sh9
1 files changed, 2 insertions, 7 deletions
diff --git a/modules.d/95iscsi/module-setup.sh b/modules.d/95iscsi/module-setup.sh
index 2bea2fc..5eaab4e 100755
--- a/modules.d/95iscsi/module-setup.sh
+++ b/modules.d/95iscsi/module-setup.sh
@@ -198,14 +198,9 @@ install() {
"$systemdsystemunitdir"/sockets.target.wants/iscsid.socket \
"$systemdsystemunitdir"/sockets.target.wants/iscsiuio.socket
+ inst_simple /etc/iscsi/iscsid.conf
if [[ $hostonly ]]; then
- local -a _filenames
-
- inst_dir /etc/iscsi
- mapfile -t -d '' _filenames < <(find /etc/iscsi -type f -print0)
- inst_multiple "${_filenames[@]}"
- else
- inst_simple /etc/iscsi/iscsid.conf
+ inst_simple /etc/iscsi/initiatorname.iscsi
fi
# Detect iBFT and perform mandatory steps