Package: release.debian.org
Severity: normal
Tags: trixie
User: [email protected]
Usertags: pu

Hi,

[ Reason ]

In #1103644 it was reported that booting with rootfs on iSCSI
doesn't work. This is caused by lack of /var/lib/iscsi in initramfs
stage, required for iscsistart to create /var/lib/iscsi etc as
needed.

[ Impact ]

Without this fix, booting rootfs via iSCSI isn't working with
Debian/trixie.

[ Tests ]

No automated tests, but a customer of mine is affected and manually
verified the fixed package.

[ Risks ]

Trivial one-line change, being a noop if the directory should exist
already.

[ Checklist ]
  [x] *all* changes are documented in the d/changelog
  [x] I reviewed all changes and I approve them
  [x] attach debdiff against the package in (old)stable
  [x] the issue is verified as fixed in unstable

[ Changes ]

A single `mkdir -p /var/lib` before invoking iscsistart in the
initramfs script.

[ Other info ]

I'd like to upload version 2.1.11-1+deb13u1 of open-iscsi,
which is prepared also at
https://salsa.debian.org/linux-blocks-team/open-iscsi/-/tree/trixie?ref_type=heads

Thanks for consideration.

regards
-mika-
diff -Nru open-iscsi-2.1.11/debian/changelog open-iscsi-2.1.11/debian/changelog
--- open-iscsi-2.1.11/debian/changelog  2025-03-09 18:18:38.000000000 +0100
+++ open-iscsi-2.1.11/debian/changelog  2025-08-15 23:26:38.000000000 +0200
@@ -1,3 +1,10 @@
+open-iscsi (2.1.11-1+deb13u1) trixie; urgency=medium
+
+  * [f3d17cf] initramfs: ensure that /var/lib exists.
+    Thanks to Leon Blakey <[email protected]> (Closes: #1103644)
+
+ -- Michael Prokop <[email protected]>  Fri, 15 Aug 2025 23:26:38 +0200
+
 open-iscsi (2.1.11-1) unstable; urgency=medium
 
   * New upstream version 2.1.11.
diff -Nru open-iscsi-2.1.11/debian/extra/initramfs/local-top/iscsi 
open-iscsi-2.1.11/debian/extra/initramfs/local-top/iscsi
--- open-iscsi-2.1.11/debian/extra/initramfs/local-top/iscsi    2025-03-09 
18:18:38.000000000 +0100
+++ open-iscsi-2.1.11/debian/extra/initramfs/local-top/iscsi    2025-08-15 
23:26:38.000000000 +0200
@@ -251,6 +251,7 @@
                           ${ISCSI_IN_PASSWORD:+-W "$ISCSI_IN_PASSWORD"}
        else
                modprobe iscsi_ibft
+               mkdir -p /var/lib
                iscsistart -b
        fi
 

Reply via email to