diff options
author | szaimen <szaimen@e.mail.de> | 2020-10-02 22:07:10 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-02 22:07:10 +0300 |
commit | 744fca92e535726dc3c94e53335be70cbb6db83a (patch) | |
tree | 2cca0c16fa3c6d92fb77304f31dae285a8aa109e /nextcloud_install_production.sh | |
parent | ee61a53ae6785642a2640be352cf6e962a587f75 (diff) |
allow to use the LVM configuration as it was setup by the installer (#1505)
Diffstat (limited to 'nextcloud_install_production.sh')
-rw-r--r-- | nextcloud_install_production.sh | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/nextcloud_install_production.sh b/nextcloud_install_production.sh index c2ae366e..82f33ea1 100644 --- a/nextcloud_install_production.sh +++ b/nextcloud_install_production.sh @@ -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 |