update installer
This commit is contained in:
parent
5c1af02b3c
commit
d8f860cc3d
|
@ -239,12 +239,17 @@ setup() {
|
||||||
# Remove old LVMs{{{
|
# Remove old LVMs{{{
|
||||||
disk_clean(){
|
disk_clean(){
|
||||||
echo 'cleaning disk'
|
echo 'cleaning disk'
|
||||||
swapoff -a
|
|
||||||
umount -R /mnt || true
|
umount -R /mnt || true
|
||||||
|
swapoff -a
|
||||||
|
|
||||||
|
pvs "$DRIVE"2 || exit
|
||||||
|
|
||||||
for vg in $(pvs -o vg_name --nohead "$DRIVE"2)
|
for vg in $(pvs -o vg_name --nohead "$DRIVE"2)
|
||||||
do
|
do
|
||||||
vgremove "$vg" --yes
|
vgremove "$vg" --yes
|
||||||
done
|
done
|
||||||
|
|
||||||
pvremove "$DRIVE"2
|
pvremove "$DRIVE"2
|
||||||
}
|
}
|
||||||
#}}}
|
#}}}
|
||||||
|
|
Reference in New Issue