Fix increase fake disk size for filesytem's tests
This commit is contained in:
parent
e016af3cc6
commit
1a51b08875
2 changed files with 11 additions and 1 deletions
|
@ -22,6 +22,11 @@
|
||||||
removes: '{{ dev }}'
|
removes: '{{ dev }}'
|
||||||
when: fstype == 'lvm'
|
when: fstype == 'lvm'
|
||||||
|
|
||||||
|
- name: 'Clean correct device for LVM'
|
||||||
|
set_fact:
|
||||||
|
dev: '{{ image_file }}'
|
||||||
|
when: fstype == 'lvm'
|
||||||
|
|
||||||
- file:
|
- file:
|
||||||
name: '{{ image_file }}'
|
name: '{{ image_file }}'
|
||||||
state: absent
|
state: absent
|
||||||
|
|
|
@ -44,7 +44,12 @@
|
||||||
- 'uuid.stdout != uuid3.stdout'
|
- 'uuid.stdout != uuid3.stdout'
|
||||||
|
|
||||||
- name: increase fake device
|
- name: increase fake device
|
||||||
shell: 'dd if=/dev/zero bs=1M count=20 >> {{ image_file }}'
|
shell: 'dd if=/dev/zero bs=1M count=1 >> {{ image_file }}'
|
||||||
|
|
||||||
|
- when: fstype == 'lvm'
|
||||||
|
block:
|
||||||
|
- name: Resize loop device for LVM
|
||||||
|
command: losetup -c {{ dev }}
|
||||||
|
|
||||||
- when: 'grow|bool and (fstype != "vfat" or resize_vfat)'
|
- when: 'grow|bool and (fstype != "vfat" or resize_vfat)'
|
||||||
block:
|
block:
|
||||||
|
|
Loading…
Reference in a new issue