Skip to content

iSCSI changes - #270

Merged
ddiss merged 6 commits into
rapido-linux:masterfrom
ddiss:lio_and_libiscsi
May 25, 2026
Merged

iSCSI changes#270
ddiss merged 6 commits into
rapido-linux:masterfrom
ddiss:lio_and_libiscsi

Conversation

@ddiss

@ddiss ddiss commented May 22, 2026

Copy link
Copy Markdown
Collaborator
The following changes since commit 77c5672c6267e06f056fa22cb7286c6f7c5fef4b:

  readme: link to ci.yml as kernel-CI-on-GitHub example (2026-05-19 12:08:01 +1000)

are available in the Git repository at:

  https://github.com/ddiss/rapido.git lio_and_libiscsi

for you to fetch changes up to 84545807b44dd7ee8e2e1371e0a2049752b1d2bf:

  libiscsi_test_tool: cut and autorun scripts (2026-05-22 21:56:15 +1000)

----------------------------------------------------------------
David Disseldorp (6):
      autorun/lio_local: preload the loop kernel module
      cut/lio_local: convert from dracut to rapido-cut
      autorun: add CHAP support to lio-local and openiscsi images
      autorun/lio_local: disable demo_mode_write_protect
      autorun/openiscsi: create /run/lock/
      libiscsi_test_tool: cut and autorun scripts

 autorun/libiscsi_test_tool.sh | 21 +++++++++++++++++++++
 autorun/lio_local.sh          | 35 +++++++++++++++++++++++++++--------
 autorun/openiscsi.sh          | 17 ++++++++++++++++-
 cut/libiscsi_test_tool.sh     | 19 +++++++++++++++++++
 cut/lio_local.sh              | 63 ++++++++++++++++++++++++++++++++++++++-------------------------
 rapido.conf.example           | 16 ++++++++++++++++
 6 files changed, 137 insertions(+), 34 deletions(-)
 create mode 100755 autorun/libiscsi_test_tool.sh
 create mode 100755 cut/libiscsi_test_tool.sh

ddiss added 6 commits May 20, 2026 13:23
This is a workaround for us not yet pre-populating /dev with kmod
static-nodes during early init, which means losetup /dev/loop-control
access doesn't trigger module load.

Use modprobe -a to load multiple modules in one call and drop explicit
mention of the target_core_mod dependency.

Link: rapido-linux#268
Signed-off-by: David Disseldorp <ddiss@suse.de>
Signed-off-by: David Disseldorp <ddiss@suse.de>
Add new ISCSI[_MUTUAL]_USER and ISCSI[_MUTUAL]_PASS configuration
options, which when set trigger CHAP configuration on the lio-local and
openiscsi images.

Signed-off-by: David Disseldorp <ddiss@suse.de>
We're currently setting prod_mode_write_protect=0 and
demo_mode_write_protect=1. This used to not result write-protection for
exposed LUNs, but that appears to now be the case. Set
demo_mode_write_protect=0 to account for this upstream change in
behaviour.

Signed-off-by: David Disseldorp <ddiss@suse.de>
openiscsi fails if it can't create a file under /run/lock/, so create
it. This is likely a regression with the move to rapido-init, where
dracut init created the directory.

Signed-off-by: David Disseldorp <ddiss@suse.de>
The libiscsi test-tool is useful for testing SCSI and iSCSI storage
protocols.

Signed-off-by: David Disseldorp <ddiss@suse.de>
@ddiss
ddiss merged commit 8454580 into rapido-linux:master May 25, 2026
1 check passed
@ddiss
ddiss deleted the lio_and_libiscsi branch May 25, 2026 01:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant