make it possible to skip the whole lvm section (#1518)

This commit is contained in:
szaimen 2020-10-03 20:15:51 +02:00 committed by GitHub
parent 37e2486318
commit 9107d8a596
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -119,6 +119,8 @@ fi
# Fix LVM on BASE image
if grep -q "LVM" /etc/fstab
then
if yesno_box_yes "Do you want to make all free space available to your root partition?"
then
# Resize LVM (live installer is &%¤%/!
# VM
print_text_in_color "$ICyan" "Extending LVM, this may take a long time..."
@ -136,16 +138,14 @@ then
then
if ! lvextend -L +1M /dev/ubuntu-vg/ubuntu-lv >/dev/null 2>&1
then
if yesno_box_yes "Do you want to make all free space available to your root partition?"
then
resize2fs /dev/ubuntu-vg/ubuntu-lv
fi
resize2fs /dev/ubuntu-vg/ubuntu-lv
break
fi
fi
fi
fi
done
fi
fi
# Check if it's a clean server