瀏覽代碼

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

Change-Id: I6d1ba01efff16d41c5e91973d46aaaa7ea3caca5
pull/119/head
Ondrej Smola 7 年之前
父節點
當前提交
751c8dd53f
共有 1 個檔案被更改,包括 6 行新增2 行删除
  1. +6
    -2
      linux/storage/disk.sls

+ 6
- 2
linux/storage/disk.sls 查看文件

@@ -4,10 +4,13 @@
parted:
pkg.installed

xfsprogs:
pkg.installed

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

create_disk_label:
create_disk_label_{{ disk_name }}:
module.run:
- name: partition.mklabel
- device: {{ disk_name }}
@@ -30,7 +33,8 @@ create_partition_{{ disk_name }}_{{ loop.index }}:
- end: {{ end_size + partition.size }}MB
- unless: "blkid {{ disk_name }}{{ loop.index }} {{ disk_name }}p{{ loop.index }}"
- require:
- module: create_disk_label
- module: create_disk_label_{{ disk_name }}
- pkg: xfsprogs

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


Loading…
取消
儲存