summaryrefslogtreecommitdiff
path: root/create-vm
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2016-04-25 15:10:05 +0300
committerLars Wirzenius <liw@liw.fi>2016-04-25 15:10:05 +0300
commit7a0bd5a2e268fd351b08fba6e99cb866d6c61dea (patch)
tree62d203225348bb890764e1545fc13f7835c60f58 /create-vm
parent45e82a8a0f8664fa4509167736f6731a08875207 (diff)
downloadansibleness-7a0bd5a2e268fd351b08fba6e99cb866d6c61dea.tar.gz
Fix lvcreate for stretch
This makes lvcreate not ask about wiping an LV when the LV occupies an area of disk that used to have, say, a disk image.
Diffstat (limited to 'create-vm')
-rwxr-xr-xcreate-vm3
1 files changed, 2 insertions, 1 deletions
diff --git a/create-vm b/create-vm
index b06fa7a..2affaad 100755
--- a/create-vm
+++ b/create-vm
@@ -58,7 +58,8 @@ fi
size="4G"
# Create new LV.
-sudo lvcreate --name "$name" --size "$size" "$vg"
+sudo lvcreate --name "$name" --size "$size" \
+ --wipe-signatures y --activate y "$vg"
lvpath="/dev/$vg/$name"
# Copy uncompressed image to LV.