diff options
author | Lars Wirzenius <liw@liw.fi> | 2016-04-25 15:10:05 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2016-04-25 15:10:05 +0300 |
commit | 7a0bd5a2e268fd351b08fba6e99cb866d6c61dea (patch) | |
tree | 62d203225348bb890764e1545fc13f7835c60f58 /create-vm | |
parent | 45e82a8a0f8664fa4509167736f6731a08875207 (diff) | |
download | ansibleness-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-x | create-vm | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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. |