[Pkg-iscsi-maintainers] Bug#576786: open-iscsi: Unable to login with initramfs script

Ritesh Raj Sarraf rrs at researchut.com
Wed Apr 7 09:34:59 UTC 2010


Hello Aurel,

Can you have a look at 525053 ?

What you are proposing seems to be part of an older problem.


Regards,
Rietsh


On Wednesday 07 Apr 2010 13:24:11 Aurelien Jarno wrote:
> 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 ()

-- 
Ritesh Raj Sarraf
RESEARCHUT - http://www.researchut.com
"Necessity is the mother of invention."
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.alioth.debian.org/pipermail/pkg-iscsi-maintainers/attachments/20100407/639ec87a/attachment.pgp>


More information about the Pkg-iscsi-maintainers mailing list