Browse Source

fix for conflict id for disk label, added package for xfs

Change-Id: I6d1ba01efff16d41c5e91973d46aaaa7ea3caca5
pull/119/head
Ondrej Smola 7 years ago
parent
commit
751c8dd53f
1 changed files with 6 additions and 2 deletions
  1. +6
    -2
      linux/storage/disk.sls

+ 6
- 2
linux/storage/disk.sls View File

parted: parted:
pkg.installed pkg.installed


xfsprogs:
pkg.installed

{%- for disk_name, disk in storage.disk.iteritems() %} {%- for disk_name, disk in storage.disk.iteritems() %}
{%- set disk_name = disk.name|default(disk_name) %} {%- set disk_name = disk.name|default(disk_name) %}


create_disk_label:
create_disk_label_{{ disk_name }}:
module.run: module.run:
- name: partition.mklabel - name: partition.mklabel
- device: {{ disk_name }} - device: {{ disk_name }}
- end: {{ end_size + partition.size }}MB - end: {{ end_size + partition.size }}MB
- unless: "blkid {{ disk_name }}{{ loop.index }} {{ disk_name }}p{{ loop.index }}" - unless: "blkid {{ disk_name }}{{ loop.index }} {{ disk_name }}p{{ loop.index }}"
- require: - require:
- module: create_disk_label
- module: create_disk_label_{{ disk_name }}
- pkg: xfsprogs


{%- if partition.get('mkfs') %} {%- if partition.get('mkfs') %}



Loading…
Cancel
Save