[Pkg-iscsi-maintainers] Bug#576786: open-iscsi: Unable to login with initramfs script
Aurelien Jarno
aurel32 at debian.org
Wed Apr 7 07:54:11 UTC 2010
Package: open-iscsi
Version: 2.0.871.3-1
Severity: normal
Tags: patch
The initramfs script is not able to login to the target when a
login/password is used. This is due to a bug in the script, the -u
or -w parameters are passed twice to iscsistart. When iscsistart is
called, ISCSI_USERNAME and ISCSI_PASSWORD already contain -u or -w.
The patch below fixes the problem.
diff -u open-iscsi-2.0.871.3/debian/extra/initramfs.local-top open-iscsi-2.0.871.3/debian/extra/initramfs.local-top
--- open-iscsi-2.0.871.3/debian/extra/initramfs.local-top
+++ open-iscsi-2.0.871.3/debian/extra/initramfs.local-top
@@ -61,10 +61,8 @@
iscsistart -i $ISCSI_INITIATOR -t $ISCSI_TARGET_NAME \
-g $ISCSI_TARGET_GROUP -a $ISCSI_TARGET_IP \
-p $ISCSI_TARGET_PORT \
- ${ISCSI_USERNAME:+-u "$ISCSI_USERNAME"} \
- ${ISCSI_PASSWORD:+-w "$ISCSI_PASSWORD"} \
- ${ISCSI_IN_USERNAME:+-U "$ISCSI_IN_USERNAME"}\
- ${ISCSI_IN_PASSWORD:+-W "$ISCSI_IN_PASSWORD"}
+ ${ISCSI_USERNAME} ${ISCSI_PASSWORD} \
+ ${ISCSI_IN_USERNAME} ${ISCSI_IN_PASSWORD}
}
parse_iscsi_ops ()
-- System Information:
Debian Release: squeeze/sid
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.32-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages open-iscsi depends on:
ii libc6 2.11-0exp2 Embedded GNU C Library: Shared lib
open-iscsi recommends no packages.
open-iscsi suggests no packages.
More information about the Pkg-iscsi-maintainers
mailing list