allow to use the LVM configuration as it was setup by the installer (#1505)

This commit is contained in:
szaimen 2020-10-02 21:07:10 +02:00 committed by GitHub
parent ee61a53ae6
commit 744fca92e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -115,10 +115,9 @@ then
# Resize LVM (live installer is &%¤%/!
# VM
print_text_in_color "$ICyan" "Extending LVM, this may take a long time..."
lvextend -l 100%FREE --resizefs /dev/ubuntu-vg/ubuntu-lv
lvextend -l +100%FREE /dev/ubuntu-vg/ubuntu-lv
# Run it again manually just to be sure it's done
print_text_in_color "$ICyan" "Extending LVM, this may take a long time..."
while :
do
lvdisplay | grep "Size" | awk '{print $3}'
@ -130,7 +129,10 @@ then
then
if ! lvextend -L +1M /dev/ubuntu-vg/ubuntu-lv >/dev/null 2>&1
then
resize2fs /dev/ubuntu-vg/ubuntu-lv
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
break
fi
fi