Control: tags -1 + confirmed pending I've now implemented this in open-iscsi git. Since root=iscsi:... only gives you a full hard disk, and you might want to partition it and/or use LVM or whatnot, I've also implemented support for
root=iscsi:... root=UUID=... so that the first parameter configures iSCSI and the second parameter is then used by initramfs-tools to mount the partition (regularily). On 11/05/2015 04:30 PM, Scott Moser wrote: > Examples: > iscsi:10.0.4.1:::1:iqn.2010-04.org.ipxe.dolphin:storage > [...] > For the first example there, the way that would be done in current > parameters would be: > iscsi_target_name=iqn.2010-04.org.ipxe.dolphin:storage > iscsi_target_ip=10.0.4.1 iscsi_target_group=1 Note that the '1' before the target name is the LUN (identifying the drive within the session) and not the target group (which isn't specified at all in the RFC). But at least with a LIO target it appears that if there's just 1 target group iscsistart doesn't really care what you specify, it will pick out the right one. Also, you can still specify the target group (default is 1 anyway, btw.) directly via iscsi_target_group=42 in addition to root= > Note that RFC does not cover username and password, so that would have to > be done outside the spec if needed. I've looked at what dracut does and implemented the same syntax: TARGETSPEC=ip:proto:port:lun:targetname root=iscsi:$TARGETSPEC root=iscsi:user:password@$TARGETSPEC root=iscsi:user:password:initiatoruser:initiatorpassword@$TARGETSPEC (You can still set iscsi_* parameters for user etc.) Additionally, open-iscsi is now added unconditionally to the initramfs, unless you create /etc/initramfs-tools/conf.d/open-iscsi and set NO_ISCSI_IN_INITRAMFS=yes there. (It's documented in README.Debian.) This is now in git and will be part of the next upload. Regards, Christian
signature.asc
Description: OpenPGP digital signature