Fix increase fake disk size for filesytem's tests

pull/46690/head
Claude Dioudonnat 6 years ago committed by Michael Scherer
parent e016af3cc6
commit 1a51b08875

@ -22,6 +22,11 @@
removes: '{{ dev }}'
when: fstype == 'lvm'
- name: 'Clean correct device for LVM'
set_fact:
dev: '{{ image_file }}'
when: fstype == 'lvm'
- file:
name: '{{ image_file }}'
state: absent

@ -44,7 +44,12 @@
- 'uuid.stdout != uuid3.stdout'
- 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)'
block:

Loading…
Cancel
Save