From ba92ca80c6d8beffabf40daa06fd38bdc6e94926 Mon Sep 17 00:00:00 2001 From: Gheorghe Burac Date: Tue, 22 Sep 2020 11:11:43 +0100 Subject: [PATCH] CA-333441 create directory for set-iscsi-initiator It appears that the directory structure for the set-iscsi-initiator script was missing. The directory /var/lock/sm/iscsiadm was created. Signed-off-by: Gheorghe Burac --- scripts/set-iscsi-initiator | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/set-iscsi-initiator b/scripts/set-iscsi-initiator index 52b92f9ce..3c163cb41 100644 --- a/scripts/set-iscsi-initiator +++ b/scripts/set-iscsi-initiator @@ -30,6 +30,8 @@ trap cleanup EXIT trap ecleanup INT trap ecleanup TERM +mkdir -p /var/lock/sm/iscsiadm + INITIATORFILE=/etc/iscsi/initiatorname.iscsi TMPFILE=$TMPDIR/initiatorname.iscsi