From c1a10aefdcf60f6b48613f378b2eeab3d405228c Mon Sep 17 00:00:00 2001 From: natemaia Date: Tue, 27 Dec 2022 17:29:57 -0800 Subject: [PATCH] Add extra warning for LVM --- installer | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/installer b/installer index dc5384a..c8194e2 100755 --- a/installer +++ b/installer @@ -875,8 +875,13 @@ dev_menu() 'back' "$back" || return 0 if [[ -z $WARN && $choice != 'view' ]]; then - msg "Data Warning" "$_warn" - WARN=true + if [[ -z $LVMWARN && $choice == 'lvm' ]]; then + msg "LVM Warning" "\nIMPORTANT: Choose carefully when setting up LVM, the partitions chosen will be formatted and your DATA WILL BE LOST.\n\nLogical volumes created will need to be formatted before install.\n" + LVMWARN=true + else + msg "Data Warning" "$_warn" + WARN=true + fi fi case "$choice" in 'view') part_show ;;