update installer
This commit is contained in:
parent
5c1af02b3c
commit
d8f860cc3d
|
@ -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
|
||||
}
|
||||
#}}}
|
||||
|
|
Reference in New Issue