mirror of
https://github.com/nextcloud/vm.git
synced 2025-10-26 11:27:32 +00:00
install_production: improve the partition check (#1692)
Signed-off-by: szaimen <szaimen@e.mail.de> Co-authored-by: Daniel Hansson <github@hanssonit.se>
This commit is contained in:
parent
c0a26c46bd
commit
bb06b84752
@ -46,20 +46,10 @@ fi
|
||||
is_process_running apt
|
||||
is_process_running dpkg
|
||||
|
||||
# Test if snapshot already exists
|
||||
if does_snapshot_exist "NcVM-installation"
|
||||
then
|
||||
msg_box "Unable to continue because a logical volume already exists.
|
||||
|
||||
To run this script again, please remove the volume by running:
|
||||
'sudo lvremove /dev/ubuntu-vg/NcVM-installation'"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Create a placeholder volume before modifying anything
|
||||
if [ -z "$PROVISIONING" ]
|
||||
then
|
||||
if yesno_box_no "Do you want to use LVM snapshots to be able to restore your root partition during upgrades and such?
|
||||
if ! does_snapshot_exist "NcVM-installation" && yesno_box_no "Do you want to use LVM snapshots to be able to restore your root partition during upgrades and such?
|
||||
Please note: this feature will not be used by this script but by other scripts later on.
|
||||
For now we will only create a placeholder volume that will be used to let some space for snapshot volumes."
|
||||
then
|
||||
|
||||
Loading…
Reference in New Issue
Block a user