Suppress confirmation for wiping signatures

This commit is contained in:
jalr 2018-05-24 18:46:33 +02:00
parent ef4326a32e
commit 9f6de8393d

View file

@ -5,11 +5,11 @@ vg='vglab'
if ! lvs -o layout --noheadings $vg/docker-thinpool | grep -q 'thin,pool'; then
if ! lvs -o LV_NAME --noheadings | grep -q docker-thinpool; then
lvcreate --wipesignatures y -n docker-thinpool "$vg" -l 10%VG
lvcreate --wipesignatures y --yes -n docker-thinpool "$vg" -l 10%VG
fi
if ! lvs -o LV_NAME --noheadings | grep -q docker-thinpoolmeta; then
lvcreate --wipesignatures y -n docker-thinpoolmeta "$vg" -l 1%VG
lvcreate --wipesignatures y --yes -n docker-thinpoolmeta "$vg" -l 1%VG
fi
lvconvert -y \