From 5ebf34f4d6afd93a035797c998e494b016da02de Mon Sep 17 00:00:00 2001 From: natemaia Date: Tue, 27 Aug 2019 01:07:54 -0700 Subject: [PATCH] Return to main() after successful creation of an LVM setup --- archlabs-installer | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/archlabs-installer b/archlabs-installer index 5f98a90..43d1465 100755 --- a/archlabs-installer +++ b/archlabs-installer @@ -1939,9 +1939,9 @@ lvm_menu() "$_lvmnew" "vgcreate -f, lvcreate -L -n" \ "$_lvmdel" "vgremove -f" \ "$_lvmdelall" "lvrmeove, vgremove, pvremove -f" \ - "back" "return to the main menu" + "Back" "Return to the main menu" case "$choice" in - "$_lvmnew") lvm_create ;; + "$_lvmnew") lvm_create && break ;; "$_lvmdel") lvm_delgroup && yesno "$_lvmdel" "$_lvmdelask" && vgremove -f "$DEL_VG" >/dev/null 2>&1 ;; "$_lvmdelall") lvm_del_all ;; *) break ;; @@ -1959,7 +1959,7 @@ lvm_detect() VGROUP="$(vgs -o vg_name --noheading 2>/dev/null)" if [[ $VGROUP && $v && $pv ]]; then - msg "Logical Volume Management" "\nActivating existing logical volume management (LVM).\n\n" 1 + msg "LVM Setup" "\nActivating existing logical volume management.\n" 0 modprobe dm-mod >/dev/null 2>$ERR errshow 'modprobe dm-mod' vgscan >/dev/null 2>&1 @@ -2151,7 +2151,7 @@ luks_menu() "$_luksnew" "cryptsetup -q luksFormat" \ "$_luksopen" "cryptsetup open --type luks" \ "$_luksadv" "cryptsetup -q -s -c luksFormat" \ - "back" "Return to the main menu" + "Back" "Return to the main menu" case "$choice" in "$_luksnew") luks_basic || return 1 ;;