update installer

This commit is contained in:
lelgenio 2019-12-26 11:47:04 -03:00
parent 5c1af02b3c
commit d8f860cc3d
1 changed files with 6 additions and 1 deletions

View File

@ -239,12 +239,17 @@ setup() {
# Remove old LVMs{{{
disk_clean(){
echo 'cleaning disk'
swapoff -a
umount -R /mnt || true
swapoff -a
pvs "$DRIVE"2 || exit
for vg in $(pvs -o vg_name --nohead "$DRIVE"2)
do
vgremove "$vg" --yes
done
pvremove "$DRIVE"2
}
#}}}