]> git.ipfire.org Git - thirdparty/dracut-ng.git/commitdiff
fix(iscsi): modify iscsid.service in initrd instead of host
authorBenjamin Drung <benjamin.drung@canonical.com>
Sat, 1 Nov 2025 03:23:59 +0000 (04:23 +0100)
committerNeal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
Sat, 1 Nov 2025 04:06:34 +0000 (00:06 -0400)
Commit b2287bb7c4544d841b3d5b0510ce765753d990af ("fix(iscsi): drop
ExecStartPre startup-checks.sh from iscsid.service") incorrectly
modifies `iscsid.service` on the host instead of the service that was
copied into the initrd.

Corretly modify `iscsid.service` in initrd instead of on the host.

modules.d/74iscsi/module-setup.sh

index e8ea37eb2707044c4ec31cb3975c8c57f8bb81e2..cbf155ed435fe1f92fd133e297396ceee631bc99 100755 (executable)
@@ -221,7 +221,7 @@ install() {
             "$systemdsystemunitdir"/sockets.target.wants/iscsid.socket \
             "$systemdsystemunitdir"/sockets.target.wants/iscsiuio.socket
         sed -i '/ExecStartPre=\/usr\/lib\/open-iscsi\/startup-checks.sh/d' \
-            "${dracutsysrootdir-}$systemdsystemunitdir/iscsid.service"
+            "${initdir}$systemdsystemunitdir/iscsid.service"
 
         for i in \
             iscsid.socket \