Add extra warning for LVM

This commit is contained in:
natemaia 2022-12-27 17:29:57 -08:00
parent 40a5a15fce
commit c1a10aefdc

View File

@ -875,9 +875,14 @@ dev_menu()
'back' "$back" || return 0 'back' "$back" || return 0
if [[ -z $WARN && $choice != 'view' ]]; then if [[ -z $WARN && $choice != 'view' ]]; then
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" msg "Data Warning" "$_warn"
WARN=true WARN=true
fi fi
fi
case "$choice" in case "$choice" in
'view') part_show ;; 'view') part_show ;;
'part') part_menu && [[ "$AUTO_ROOT" ]] && return 0 ;; 'part') part_menu && [[ "$AUTO_ROOT" ]] && return 0 ;;