FS#48002 - [open-iscsi] does not generate an unique iname on install
Attached to Project:
Community Packages
Opened by Mantas Mikulėnas (grawity) - Wednesday, 03 February 2016, 09:09 GMT
Last edited by Doug Newgard (Scimmia) - Wednesday, 03 February 2016, 15:12 GMT
Opened by Mantas Mikulėnas (grawity) - Wednesday, 03 February 2016, 09:09 GMT
Last edited by Doug Newgard (Scimmia) - Wednesday, 03 February 2016, 15:12 GMT
|
Details
I assume that open-iscsi's post_install() is meant to
generate an unique initiator name for every system. But it
never actually does that due to missing shell quoting.
When $(file) is empty, [ -z $(<file) ] expands to [ -z ], which is always true. It needs to be [ -z "$(<file)" ] or [ ! -s file ] instead. |
This task depends upon
Closed by Doug Newgard (Scimmia)
Wednesday, 03 February 2016, 15:12 GMT
Reason for closing: Not a bug
Wednesday, 03 February 2016, 15:12 GMT
Reason for closing: Not a bug