Skip to content

Commit

Permalink
Merge branch 'improve/subiquity-debugging' into 'master'
Browse files Browse the repository at this point in the history
Subiquity: enable SCSI LUNs used in installation

See merge request tessia-project/tessia!208
  • Loading branch information
machikhin committed Aug 28, 2020
2 parents bfe98f1 + 3acd696 commit 491a083
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions tessia/server/db/templates/ubuntu20-subiquity.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -136,10 +136,15 @@ installation we create these auxiliary variables #}
{%- endfor %}
{%- endif %}
{%- endfor -%}
{%- set have_fcp = (config['svols'] | selectattr('type', 'eq', 'FCP'))[0] -%}
{%- if have_fcp %}
- chzdev zfcp-lun -e --online
{%- endif %}
{%- for svol in config['svols'] %}
{%- if svol['type'] == 'FCP' %}
{% for adapter in svol['specs']['adapters'] %}
{% for wwpn in adapter['wwpns'] %}
- chzdev zfcp-lun -e {{adapter['devno']}}:0x{{wwpn}}:0x{{svol['volume_id']}}
{%- endfor %}
{%- endfor %}
{%- endif %}
{%- endfor -%}
{%- for iface in config['ifaces'] %}
{%- if iface['type'] == 'OSA' %}
- chzdev -e qeth {{iface['attributes']['ccwgroup'].split(',')[0]}}
Expand Down Expand Up @@ -226,11 +231,13 @@ installation we create these auxiliary variables #}
volume: {{ volid }}-part{{ loop.index }}
id: {{ volid }}-part{{ loop.index }}-fs
fstype: {{ part['fs'] }}
{%- if part['mp'] %}
- type: mount
device: {{ volid }}-part{{ loop.index }}-fs
id: {{ volid }}-part{{ loop.index }}-fs-mount
path: {{ part['mp'] }}
options: {{ part['mo'] }}
{%- endif %}
{%- endfor %}{# part #}
{% endfor %}{# svol in svols #}
{%- endif %}{# not KVM %}
Expand Down

0 comments on commit 491a083

Please sign in to comment.